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

Only parse oplog entries once during replication (apply phase)

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc3
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • Repl B (10/30/15), Repl C (11/20/15)
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      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)

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

              Created:
              Updated:
              Resolved: