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

SBE $addFields/setField should avoid making unnecessary copies

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Execution

    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.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            anna.wawrzyniak@mongodb.com Anna Wawrzyniak
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: