[SERVER-77501] SBE $addFields/setField should avoid making unnecessary copies Created: 25/May/23 Updated: 08/Aug/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Anna Wawrzyniak | 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
|
| Participants: |
| Description |
|
setField instruction appers to be making Object copy even if the object is owned (was moved from the accessor to the stack). This will result in making multiple document copies if setField instructions are executed in sequence. instead, if the object is owned we should modify it in place. |