Updates and deletes reposition cursors once more than necessary

XMLWordPrintableJSON

    • 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.

            Assignee:
            [DO NOT USE] Backlog - Query Execution
            Reporter:
            Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: