[SERVER-71058] Investigate if we can cover array queries on non-multikey index Created: 03/Nov/22 Updated: 05/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Alya Berciu | Assignee: | Backlog - Query Optimization |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Optimization
|
| Participants: |
| Description |
|
If we have a query of the form {a: [1, 2, 3]}when we have a non-multikey index, we should never return any documents. We should investigate if we can trust an INDEX_SCAN to evaluate this case without a fetch/filter. |