-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
Fully Compatible
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.
- is duplicated by
-
SERVER-14987 Combine multiple adjacent $match commands into one
- Closed