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

Refactor deleteDocument, pass document directly as parameter

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding, Storage
    • None
    • Query Execution
    • Fully Compatible
    • Sharding E (01/08/16)
    • 0

    Description

      Collection::deleteDocument currently takes a RecordId value as parameter, and then queries the collection for the actual document. However, many of the callers of the method already have the document, as well as the location. Instead of just passing in the record location and redundantly looking up the document from memory, pass the document directly into the method as well and save an extra disk call.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: