Short circuit mongos queries

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            [DO NOT USE] Backlog - Query Optimization
            Reporter:
            Jason Zucchetto (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: