-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Fully Compatible
-
v3.4
-
Query 2017-01-23
-
(copied to CRM)
$addFields is a new stage for 3.4 for aggregation and the same optimization that was made for some $project in SERVER-19153 should be made for $addFields.
(i.e. if $match is not on fields that are created/involved in $addFields then it can go before $addFields).
- is related to
-
SERVER-25510 Differentiate between Inclusion and Computed projections.
- Backlog
- related to
-
SERVER-19153 Conditionally push $match before $project
- Closed