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

Only parse oplog entries once during replication (apply phase)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc3
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Repl B (10/30/15), Repl C (11/20/15)

      Description

      Once the oplog entries are fetches from the upstream source the same fields, "ns", "op", "ts" and others are repeatedly read from the same entry causing lots of extra parsing/work.

      One possible solution is to create a simple struct to wrap the BSONObj which caches the well-known fields:

      • ts
      • ns
      • op
      • o (optional)
      • o2 (optional)
      • o/o2._id (optional)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              scotthernandez Scott Hernandez
              Reporter:
              scotthernandez Scott Hernandez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: