[SERVER-21908] How could I use covered query with null value ? Created: 15/Dec/15 Updated: 15/Dec/15 Resolved: 15/Dec/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Minor - P4 |
| Reporter: | Benjamin Appréderisse | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
I have a collection with 2 documents such as:
On this collection, I have 1 index such as:
Explain a query tell me that :
How could I use a covered query in this specific case to use my index without needing to scan the collection ? Thanks. |
| Comments |
| Comment by Kelsey Schubert [ 15/Dec/15 ] |
|
Hi bappr, Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-users group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group. Thank you, |