-
Type:
Task
-
Resolution: Done
-
Priority:
Major - P3
-
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.
- is related to
-
SERVER-124355 Improve memory checks for array expressions
-
- Needs Merge
-