Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27283

Sharded aggregations that need merging should only consider for merging the shards that have documents to contribute

    • 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).

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: