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

Ensure shard filtering works as expected when pushing down $group on shard key

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible

      Check that SERVER-92471 and SERVER-92458 work together as expected. E.g. the following:

       

      [{$sort: {shardKey: 1, notShardKey: 1}},
      {$group: {_id: "$shardKey", accum: {$first: "$shardKey"}}}]

      should result in a DISTINCT_SCAN on shardKey_1_notShardKey_1 with isShardFiltering=true.

       

            Assignee:
            henri.nikku@mongodb.com Henri Nikku
            Reporter:
            henri.nikku@mongodb.com Henri Nikku
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: