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

Make sharded $lookup queries run on non-primary shards able to target the primary shard

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None
    • Query Optimization 2021-07-26

    Description

      After SERVER-38728, when a $lookup query is run on a mongod, and the collection is unsharded, we'll assume that we can get the correct results by doing a local read. However, if the mongod is not the primary shard, this will lead to us returning incorrect (empty) results. Instead, we should add logic to send the query to the primary shard.

      Attachments

        Activity

          People

            katherine.wu@mongodb.com Katherine Wu (Inactive)
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: