If a $sort is precedes a $group on a shard-key, we can safely push it down to shards after the $sort, since it consumes the sort order & effectively discards it (i.e. the merging pipeline doesn't need to know about it).
- depends on
-
SERVER-92457 Push-down $group on shard key to shards
- In Code Review
-
SERVER-92470 Refactor pipeline splitting code for easier state tracking
- Closed