-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Index Maintenance, Querying
-
None
-
Fully Compatible
In some cases where a large array is indexed and an (eg equality) match on (eg a non null value) is requested, it may be slow and unnecessary to scan the document's full array for a matching element. The existence of a matching element may be inferred from the existence of a matching index key. We'd need to carefully examine the set of cases where this optimization can be applied.
- duplicates
-
SERVER-10026 New query system
- Closed
- is related to
-
SERVER-4207 $in queries perform linearly to the length of the input array
- Backlog