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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.9, 3.1.4
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Completed:
    • Sprint:
      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

              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: