-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: 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.