Limit memory usage of $setUnion in Classic engine

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 9.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      $setUnion accumulates unique elements from all N input arrays into a new result array. Memory usage is bounded only by the total size of all input arrays combined, with no cap enforced on the output. In the worst case all input elements are distinct, making the output as large as all inputs together.

      In classic engine $setUnion is implemented by the ExpressionSetUnion class.

            Assignee:
            Foteini Alvanaki
            Reporter:
            Foteini Alvanaki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: