[SBE] $returnKey support

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Query 2020-05-18, Query 2020-06-01, Query 2020-06-15, Query 2020-06-29, Query 2020-07-13, Query 2020-07-27
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Justin Seyster
            Reporter:
            Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: