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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • 3.0.9, 3.1.4
    • Aggregation Framework
    • None
    • Fully Compatible
    • Quint Iteration 3, Quint Iteration 4

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: