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

Return updated doc from update function

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.5.2
    • Component/s: Write Ops
    • Query

      In the UpdateResult we should expose the newly updated (or inserted) doc for use by the caller. This would be useful from findAndModify so another query doesn't need to be sent when returning the "new" document version.

      Simple testing show this to be at least 8% of the total call time on an unloaded server – but it will be much worse on an active system where yields can occur.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: