Only materialize result doc once in buildUnwind()

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Kevin Cherkauer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: