Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-761

Stop storing downloaded changesets in history

      We currently store an encoded form of the final transformed version of each downloaded changeset in history during history integration. That means that for large changesets - especially the ones sent during initial sync that are 8MB each, we can end up holding 4 copies of each changeset and writing each changeset to disk at least twice as part of download integration. This can lead to significant memory pressure and write amplification.

      This is not necessary, however. Once the downloaded changeset has been transformed and applied, we do not need to reference it again. Instead of storing the encoded transformed changesets, we should discard them and only update the progress counters contained in the download message.

            Assignee:
            daniel.tabacaru@mongodb.com Daniel Tabacaru
            Reporter:
            jonathan.reams@mongodb.com Jonathan Reams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: