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

oplog documents should indicate which indexes were touched

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 2.2.0
    • Replication
    • None

    Description

      If each oplog document had a hint of which indexes were touched, we could use this information on a secondary to intelligently prefetch index pages.

      Right now we always prefetch for all indexes, unless the administrator sets a manual flag to completely turn off the feature. The manual setting plus the all-or-nothing approach that the current code takes is suboptimal. On the primary, for an update operation, it knows if it had to touch indexes, so it could include this info when it logs the operation into its oplog.

      We could then make the --replIndexPrefetch command line and config file option a no-op.

      Attachments

        Activity

          People

            Unassigned Unassigned
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: