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

Only parse oplog entries once during replication (apply phase)

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.2.0-rc3
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: