[SERVER-4666] sparse indexes break $exists query Created: 12/Jan/12 Updated: 29/Feb/12 Resolved: 12/Jan/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance, Querying |
| Affects Version/s: | 2.0.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Colin Howe | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
Adding a sparse index breaks $exists queries on that field. Sample console session:
|
| Comments |
| Comment by Aaron Staple [ 12/Jan/12 ] |
|
Hi Colin - I think we already have a ticket for this issue. Please feel free to comment on |
| Comment by Colin Howe [ 12/Jan/12 ] |
|
I guess the problem here is that the optimizer chooses to use the index - incorrectly. |