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

when replicating capped collection, _id index is created at the target

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None

      Regardless of whether or not a source capped collection has an _id index, our replication code will create an _id index on the target collection to make op replay detection efficient. As a consequence, insertion into the target collection could potentially be slower than insertion into the source collection, eventually causing the slave to become out of sync if there is a high frequency of writes to the master. One way to resolve this would be to detect replays by verifying the _id of the newest element in the capped collection (the one which will precede the new object to be added if the new object described in the op is in fact added).

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            aaron Aaron Staple
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: