-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Labels:None
Not sure if this is possible but, as I understand it, indexes are only used for the first $match stage of a pipeline and then a collection scan for all the others after that.
If possible it might be beneficial to use indexes for all $match stages and possibly $filter expressions too as they themselves can be quite powerful.