[SERVER-20378] Clean up DocumentSourceUnwind::Unwinder, attempt to share code with $lookUp Created: 11/Sep/15 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Aggregation Framework, Internal Code |
| Affects Version/s: | 3.1.8 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Charlie Swanson | Assignee: | Backlog - Query Execution |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | optimization | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Execution
|
| Backwards Compatibility: | Fully Compatible |
| Participants: |
| Description |
|
Currently the $lookUp stage has to duplicate much of the logic of the $unwind stage in order to be able to coalesce with it. It would be nice if the logic could all live in one place. Additionally, DocumentSourceUnwind, and DocumentSourceUnwind::Unwinder share many member variables, and could probably be merged into one class somehow. |