Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
-
Fully Compatible
Description
I have an index on a and b :
{"a":1, "b":1}If I use two consecutive $match'es in the pipeline, the index is used but only for the "a" part.
{$match:{"a":xxx}}, {$match:{"b":xxx}}
The server could optimize this case by internally merge the two match.
Attachments
Issue Links
- is duplicated by
-
SERVER-14987 Combine multiple adjacent $match commands into one
-
- Closed
-