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

Updates and deletes reposition cursors once more than necessary

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 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.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: