-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
Execution Team 2021-05-31
-
None
-
None
-
None
-
None
-
None
-
None
-
None
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.