-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
None
-
None
-
None
-
None
-
None
-
None
-
None
A certain customer has a lot of queries with $unionWith, both at the top level and within subpipelines. Dedicated jstests are needed that exercise those situations with join optimization enabled, as the combination of $unionWith + $lookup + $unwind or $lookup (with $unionWith) + $unwind is unlikely to be present in existing jstests tests except by chance.