[SERVER-4543] $exists: true does not use sparse index Created: 22/Dec/11  Updated: 07/Mar/14  Resolved: 22/Dec/11

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 2.0.2
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Yair Halevi Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-4187 automatically pick sparse indexes for... Closed
Participants:

 Description   

Issuing a {$exists:true} query on a field that has a sparse index doesn't use the sparse index.
In contrast, {$type: 2} on the same field, for example, does use the sparse index.


Generated at Thu Feb 08 03:06:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.