[SERVER-40254] Collapse project stage in a pipeline so the projection occurs in DocumentSourceCursor Created: 21/Mar/19  Updated: 06/Dec/22  Resolved: 23/Oct/19

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

Type: Task Priority: Major - P3
Reporter: Anton Korshunov Assignee: Backlog - Query Team (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-42905 Push down user-specified projections ... Closed
Related
related to SERVER-44216 Complete TODO listed in SERVER-40254 Closed
related to SERVER-24860 Optimize away entire pipeline if it c... Closed
Assigned Teams:
Query
Participants:

 Description   

In SERVER-24860 an optimization was added to skip the aggregation and answer the pipeline using just a query plan, if the pipeline can be collapsed into a single $cursor stage. Currently a pipeline with a $project stage can be collapsed if we can generated a covered query plan. We should be able to extend it to uncovered plans and collapse the $project stage, if it is a simple projection without complex pipeline expressions.


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