Investigate and remove document copy in Express engine

    • 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

      The classic engine and SBE are both carefully written to allow query plans to copy data straight out of the storage layer into the network buffer. 

       

      Mathias recently noticed that Express actually does an extra copy of the record being returned here. Note that following the git blame, this was introduced under SERVER-105226, here, however, we actually did this copy before that patch landed within RecordStore::findRecord().

       

      We should investigate why this copy is made and remove it.

            Assignee:
            Unassigned
            Reporter:
            Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: