[SERVER-20092] Add ability for DocumentSourceCursor to coalesce with a $project stage if it is doing an equivalent projection Created: 24/Aug/15  Updated: 06/Dec/17  Resolved: 24/May/17

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

Type: Improvement Priority: Major - P3
Reporter: Charlie Swanson Assignee: Nicholas Zolnierz
Resolution: Done Votes: 0
Labels: optimization
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2017-04-17, Query 2017-05-08, Query 2017-05-29
Participants:

 Description   

Once SERVER-12015 is fixed, the cursor stage will have the ability to handle a simple inclusion projection itself. If the cursor source has a projection, and there is a $project stage in the pipeline with the same specification, we should be able to remove it.

Note this might get messy/complicated in terms of nested projection objects, particularly when including sub-fields of _id.



 Comments   
Comment by Githook User [ 23/May/17 ]

Author:

{u'username': u'nzolnierzmdb', u'name': u'Nick Zolnierz', u'email': u'nicholas.zolnierz@mongodb.com'}

Message: SERVER-20092: Add ability for DocumentSourceCursor to coalesce with a stage if it is doing an equivalent projection
Branch: master
https://github.com/mongodb/mongo/commit/824f61af05cee3ec76986b28867b02659c0045b4

Generated at Thu Feb 08 03:53:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.