Details
-
Improvement
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
None
-
None
-
Query Execution
-
Execution Team 2021-05-31
Description
Our UpdateStage and DeleteStage restore their cursors after committing each update or delete write.
For single-document updates and deletes, however, this is unnecessary work and requires recreating and repositioning a cursor that will not be used further.
A more optimal solution would be to lazily restore the cursors, if necessary, at the beginning of each doWork() function. This would ensure single updates/deletes do not do more work than necessary.