Optimize _shouldProduceRecordIdSlot maintenance

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • QE 2022-09-19, QE 2022-10-03
    • 2
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      _shouldProduceRecordIdSlot is set to indicate if $project stage needs to produce recordId slot. If the $group stage is present the plan then it will not have recordId. Since buildProjectionDefault() is expected to be called first because it's the root (top) stage in the plan and because childReqs aren't updated by the child stage (by a $group stage) the flag _shouldProduceRecordIdSlot must be set in advance.
      Investigate if its viable to update childReqs by the child stage and if its not possible then have only one traversal of the plan tree to set _shouldProduceRecordIdSlot.

            Assignee:
            Alberto Massari
            Reporter:
            Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: