Refactor deleteDocument, pass document directly as parameter

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding, Storage
    • None
    • Query Execution
    • Fully Compatible
    • Sharding E (01/08/16)
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            [DO NOT USE] Backlog - Query Execution
            Reporter:
            Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: