Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-77501

SBE $addFields/setField should avoid making unnecessary copies

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution

      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.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            anna.wawrzyniak@mongodb.com Anna Wawrzyniak
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: