-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Query
-
Fully Compatible
We can replace
[ {$project:{a:0}}, {$project:{b:0}}, {$project:{c:0}}]
with
[ {$project:{a:0, b:0, c:0}} ]
which will be faster.
- duplicates
-
SERVER-27744 merge sequential $project stages and $addFields stages when appropriate
- Backlog