-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Query Optimization
Even though a scatter-gather aggregation is sent to all shards, it may be the case that a small subset of shards have any results to contribute to the merge stage.
In those cases it would be better for performance if we only considered for merge stage the shards that have documents to contribute to the merge phase.
(This would require shards doing more work on the cursor before returning it to mongos for forwarding to selected merging shard).
- is related to
-
SERVER-18940 Optimise sharded aggregations that are targeted to a single shard
- Closed
-
SERVER-24815 Merging aggregation pipeline strategy should be configurable
- Backlog