Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
Fully Compatible
-
v3.4
-
Query 2017-01-23
-
Description
$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).
Attachments
Issue Links
- is documented by
-
DOCS-9798 Document that $match can be conditionally pushed before $addFields in an aggregation pipeline
-
- Closed
-
- is related to
-
SERVER-25510 Differentiate between Inclusion and Computed projections.
-
- Backlog
-
- related to
-
SERVER-19153 Conditionally push $match before $project
-
- Closed
-