-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework, Internal Code
-
Fully Compatible
-
Query 10 (02/22/16), Query 11 (03/14/16)
Currently DocumentSourceMatch does not implement getDependencies, which means that we cannot tell which fields will be needed by the match stage, and hence must ask for all fields. This can limit our ability to project out unneeded fields.
We should add an implementation of getDependencies that will look at it's MatchExpression to determine which fields are needed.
- related to
-
SERVER-30342 Slow performance of $project in aggregation pipeline in 3.4.6
- Closed
-
SERVER-22631 Improve efficiency of matching during an aggregation pipeline.
- Closed