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

Avoid unnecessarily fetching documents while updating

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization

      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.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            christopher.harris@mongodb.com Chris Harris
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: