-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Query Planning
-
Query Optimization
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Sparse indexes are currently excluded from providing a sort because non-indexed documents could be missing from the result set. However, if the query predicate guarantees all returned docs are indexed (e.g., find(
{b: 1}).sort(
{a: 1}) with sparse index
{a:1, b:1}), the index should be usable. See also SERVER-13908.
See query_planner.cpp:1018
- is related to
-
SERVER-13908 Whole index scan on sparse index should be able to provide a sort
-
- Backlog
-