[SERVER-20377] DocumentSourceUnwind::Unwinder should use a MutableDocument to create output documents Created: 11/Sep/15 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Aggregation Framework, Internal Code |
| Affects Version/s: | 3.1.7 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Charlie Swanson | Assignee: | Backlog - Query Execution |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Execution
|
| Backwards Compatibility: | Fully Compatible |
| Sprint: | QuInt A (10/12/15), QuInt B (11/02/15) |
| Participants: |
| Description |
|
Currently it uses a Document, and creates a MutableDocument copy of it each time it outputs the next Document. The more efficient implementation is to hold a MutableDocument as _output, set the relevant fields on that, and return _output.peek() each time (except the last time, when _output.freeze() can be used). |