simplify update and delete replication oplog entry application

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Replication
    • Repl 2020-03-23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Today, applyOperation_inlock() builds and executes an entire Query plan to do each replicated 'u' update and 'd' delete operation. This method has a lot of overhead that could be avoided. I believe we can avoid the query code entirely for simplification and performance improvements.
      For example, instead of calling deleteObjects(), the delete code could instead:
      1. Find the RecordId of the document to be deleted by doing a point lookup for the _id field in the _id index (use IndexAccessMethod::findSingle()).
      2. Use that RecordId in a call to Collection::deleteDocument().

      For update operations, a similar (but a bit more involved) method could be used.

            Assignee:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Eric Milkie
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: