-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.6.3, 4.0.1
-
Component/s: Querying
-
None
-
ALL
-
An $expr expression in a query will not use a multi-key index. Ticket SERVER-31760 indicates this was fixed in 3.6.3 but still fails to work if the index is a multi-key index. This manifests only after an element is inserted that makes the index a multi-key index.
A normal query will use the correct index, but, as with the motivation for SERVER-31760, it is desired to work within a $lookup pipeline where $expr would be required.
The problem exists in 3.6.3 as well as 4.0.1
- is related to
-
SERVER-96826 $expr with find() does not use an index
- Closed