[SERVER-25509] Use the SingleDocumentTransformation framework for $replaceRoot Created: 09/Aug/16  Updated: 02/Sep/16  Resolved: 15/Aug/16

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

Type: Improvement Priority: Major - P3
Reporter: Carly Robison Assignee: Carly Robison
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

$project and $addFields are both aliases for a document source that implements optimizations for 1:1 transformations. Since $replaceRoot is also a 1:1 transformation, we can leverage these shared optimizations.



 Comments   
Comment by Githook User [ 15/Aug/16 ]

Author:

{u'username': u'carlyrobison', u'name': u'Carly Robison', u'email': u'crobison@caltech.edu'}

Message: SERVER-25509 make $replaceRoot an alias for DocumentSourceSingleDocumentTransformation
Branch: master
https://github.com/mongodb/mongo/commit/6a1f506a5f14f49e963b8768ed34e9775d68c6dc

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