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

DocumentSourceUnwind::Unwinder should use a MutableDocument to create output documents

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.1.7
    • Labels:
      None
    • Query Execution
    • Fully Compatible
    • QuInt A (10/12/15), QuInt B (11/02/15)

      Currently it uses a Document, and creates a MutableDocument copy of it each time it outputs the next Document. The more efficient implementation is to hold a MutableDocument as _output, set the relevant fields on that, and return _output.peek() each time (except the last time, when _output.freeze() can be used).

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: