This will involve changing the 'distributedPlanLogic()' for DocumentSourceLookup. Note that only top-level $lookups should be allowed to run in parallel, and any nested $lookup stages in the pipeline should remain on the "merging" half of the pipeline and be run serially.
- depends on
-
SERVER-39016 Make sharded $lookup queries run on non-primary shards able to target the primary shard
- Closed
- is related to
-
SERVER-39179 Confirm that aggregate command comment is propagated by sharded $lookup / $graphLookup
- Closed
-
SERVER-58208 Allow top-level $graphLookup stages to run in parallel on shards
- Closed