-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Fully Compatible
-
Query Optimization 2021-02-22, Query Optimization 2021-03-08, Query Optimization 2021-03-22, Query Optimization 2021-04-05, Query Optimization 2021-04-19
As part of a resharding operation we issue a pipeline with a $sort followed by a $lookup on config.cache.chunks. For efficiency and resumability, we need each shard to provide things in a sorted order and also perform the $lookup. Today this doesn't work because the $sort forces a split of a sharded pipeline and does not push the $lookup into the shards part. For this particular $lookup, we know it is safe to run it in parallel, so we should be able to push it into the shards pipeline.
- causes
-
SERVER-57164 Invariant failure in a $group-by-variable optimization
- Closed
- is depended on by
-
SERVER-53940 Support resuming resharding collection cloning for sharded collections with non-simple default collations
- Closed
- is related to
-
SERVER-26442 Push $sort before $project and $addFields
- Open
- related to
-
SERVER-56583 Push $setWindowFields to shards when shards contain whole partitions
- Backlog