[SERVER-48721] [SBE] $returnKey support Created: 04/May/20  Updated: 29/Oct/23  Resolved: 16/Jul/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Task Priority: Major - P3
Reporter: Justin Seyster Assignee: Justin Seyster
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-49552 Complete TODO listed in SERVER-48721 Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2020-05-18, Query 2020-06-01, Query 2020-06-15, Query 2020-06-29, Query 2020-07-13, Query 2020-07-27
Participants:

 Description   

Allow the SBE planner to construct a plan that honors the "returnKey" option in find commands, causing it to return the expanded index entry for each document it would have returned instead of returning the document itself.

This work also involves fleshing out the mongo::sbe::IndexScanStage so that it can populate slots with index key components.



 Comments   
Comment by Githook User [ 17/Jul/20 ]

Author:

{'name': 'Justin Seyster', 'email': 'justin.seyster@mongodb.com', 'username': 'jseyster'}

Message: SERVER-48721 Correct ticket number in TODO comment
Branch: master
https://github.com/mongodb/mongo/commit/8b9af875a947b862c6bf82754ae7eaf582a9ab3f

Comment by Githook User [ 16/Jul/20 ]

Author:

{'name': 'Justin Seyster', 'email': 'justin.seyster@mongodb.com', 'username': 'jseyster'}

Message: SERVER-48721 Support for $returnKey in SBE
Branch: master
https://github.com/mongodb/mongo/commit/b1ecda7953b2d9e23857ceeb09f10f9cd18c959b

Comment by David Storch [ 11/Jun/20 ]

justin.seyster could you add a description to this ticket when you get a chance?

Generated at Thu Feb 08 05:17:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.