SBE $addFields/setField should avoid making unnecessary copies

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Query Execution
            Reporter:
            Anna Wawrzyniak
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: