[SERVER-29010] Coalesce adjacent exclusion $project stages and non-overlapping $addFields stages Created: 27/Apr/17  Updated: 06/Dec/22  Resolved: 28/Apr/17

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Asya Kamsky Assignee: Backlog - Query Team (Inactive)
Resolution: Duplicate Votes: 0
Labels: optimization
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-27744 merge sequential $project stages and ... Backlog
Assigned Teams:
Query
Backwards Compatibility: Fully Compatible
Participants:

 Description   

We can replace

[ {$project:{a:0}}, {$project:{b:0}}, {$project:{c:0}}]

with

[ {$project:{a:0, b:0, c:0}} ]

which will be faster.



 Comments   
Comment by Asya Kamsky [ 28/Apr/17 ]

duplicate of SERVER-27744

Comment by Charlie Swanson [ 28/Apr/17 ]

asya, this looks like a duplicate of SERVER-27744. Can you perhaps expand the scope of 27744 and resolve this as a duplicate?

Generated at Thu Feb 08 04:19:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.