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

Short circuit mongos queries

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Optimization

    Description

      For certain scenarios, such as finding a single document (without a sort) from mongos, mongos should immediately return results that are found (and before all shards respond).

      E.g.

      mongos > db.col.find( { "_id" : 123 } ).limit(1)
      

      Short circuiting from mongos should only occur when a limit is placed on the query, and with no sort.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            jason.zucchetto Jason Zucchetto
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: