-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.6.7
-
Component/s: Querying
-
None
-
Query Optimization
-
(copied to CRM)
Assume that I have a $or query as below:
{$or : [ {query1}, {query2} ] }
And the index filters are configured for query1 and query2 separately.
Currently the query engine doesn't use the index filters for these sub-queries in the $or clauses, but rather looks for an index filter set on the entire query shape. It would be nice if the $or clause shapes use the index filters for them individually, so that we can "hint" the indexes for each clause separately.
- related to
-
SERVER-1649 Allows hints when multiple indexes are used
- Backlog