Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-82641

Only materialize result doc once in buildUnwind()

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • None
    • None
    • None
    • Query Execution
    • Fully Compatible
    • 35

    Description

      From justin.seyster@mongodb.com 's code review of SERVER-80563 PR 15298, in reference to sbe_stage_builder.cpp buildUnwind():

      "$unwind stages that request an index will need to materialize a BSON document twice: once to add the index and once to add the unwound field. Would it be practical to use one generateProject call that adds both fields in the same path?"

      This ticket is to address that issue.

      Attachments

        Activity

          People

            kevin.cherkauer@mongodb.com Kevin Cherkauer
            kevin.cherkauer@mongodb.com Kevin Cherkauer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: