[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.


Generated at Thu Feb 08 06:35:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.