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

Avoid unnecessarily fetching documents while updating

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Optimization

    Description

      update operations can currently FETCH the same document multiple times. This happens when the index being used includes a key that the update is modifying and the modification places the new entry later in the index relative to the traversal that is happening. We successfully use the record ids to avoid modifying the document multiple times, but we currently FETCH it more than once. This seems unnecessary as we should be able to use the record id in the index to confirm that no further work is necessary for the document.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            christopher.harris@mongodb.com Chris Harris
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated: