Optimize stack usage in UnionWithStage::doGetNext()

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2025-09-01
    • 200
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      currently each call to doGetNext() for $unionWith will grow the stack by 1-2k bytes depending on the build type. This causes stack exhaustion when pipeline size is pushed to the limits. 

      Find a way to reduce stack size to the size that'd allow 1000 $unionWith stages to execute in a single pipeline.

            Assignee:
            Serhii Lysenko
            Reporter:
            Serhii Lysenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: