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

Optimize aggregation on sharded setup if first stage is exact match on shard key

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.9, 3.1.4
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • Fully Compatible
    • Quint Iteration 3, Quint Iteration 4

      If only one shard is involved in an aggregate operation, handle this like an aggregation on non-sharded setups.

      This will improve performance and reduce memory and network activity for many sharded setups, where the shardkey is for example the userId.

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            notz Gernot Pansy
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: