-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
None
-
3
-
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.