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

Push down $group on shard key to shards if preceded by a pushed-down $sort

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • QO 2024-08-19, QO 2024-09-02, QO 2024-09-16, QO 2024-09-30

      If a $sort is precedes a $group on a shard-key, we can safely push it down to shards after the $sort, since it consumes the sort order & effectively discards it (i.e. the merging pipeline doesn't need to know about it).

            Assignee:
            james.harrison@mongodb.com James Harrison
            Reporter:
            alya.berciu@mongodb.com Alya Berciu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: