-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
None
-
None
-
None
-
None
-
None
-
None
-
None
In particular want to cover cases when a distinct scan optimization can be applied wrongly. This optimization is possible when $group groups on the prefix of an existing index and the accumulator functions specifies sorting on some of the remaining fields of the index.
See SERVER-110803 for some examples.
- is related to
-
SERVER-110803 $top and $bottom ignore sortBy clause when preceeding $sort stage makes it eligible for DISTINCT_SCAN optimization
-
- Closed
-