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

Only materialize result doc once in buildUnwind()

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • 35

      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.

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

              Created:
              Updated:
              Resolved: