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

Use diffing for full document replacement updates

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:

      We currently log full document replacement-style updates as "replacement" oplog entries.

      We could use the recently introduced diffing code to instead only log the diff between the pre image and post image.

      This would have consequences for change streams since some full replacement updates would begin appearing as "update" change events instead of "replacement" change events. Currently (4.4) the only way for users to get a point-in-time post image of an update is by performing a replacement-style update. By using the diffing we would effectively be taking away this unintended "feature."

            Assignee:
            kateryna.kamenieva@mongodb.com Katya Kamenieva
            Reporter:
            ian.boros@mongodb.com Ian Boros
            Votes:
            3 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated: