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

Only parse oplog entries once during replication (apply phase)

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.2.0-rc3
    • None
    • Replication
    • None
    • Fully Compatible
    • 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

        Activity

          People

            scotthernandez Scott Hernandez (Inactive)
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: