realm-core icon indicating copy to clipboard operation
realm-core copied to clipboard

Improve transparency of the realm file.

Open finnschiermer opened this issue 2 years ago • 2 comments

Idea to improve our ability to analyze realm files after a crash:

  1. Add a signature to the top array, allowing us to identify top-arrays of earlier commits if present.
  2. Add a link to the top array pointing to the top array of the previous commit, thus forming a chain of past commits. The link cannot be an ordinary ref, since it will not always be valid.
  3. Add the "last reachable version" number to the top array, telling us how far back in time the chain of past commits are valid.

finnschiermer avatar Aug 23 '22 15:08 finnschiermer

This could help locating issues more easily and to restore old data in a corrupt file a lot. On the other hand, actually being ACID would help more.

BlueCobold avatar Aug 29 '22 12:08 BlueCobold

I can't disagree with that observation.

finnschiermer avatar Aug 30 '22 08:08 finnschiermer