Skip to content

graph-lite: persistence format v1 — write, load, refuse #6

Description

@sebyx07

The on-disk format, structurally close to the in-memory CSR layout so a reload is nearly a read.

Done when

  • Versioned header. A file stamped with a newer version is refused, loudly — never read optimistically.
  • Checksums over the arrays, verified on load. Corruption fails to open and names the offset.
  • Atomic replacement: write beside, fsync, rename. A file is the old state or the new state, never a third thing.
  • Round-trip property test: save/load preserves every node, edge, property and id.

Constraint

The layout is a one-way door the moment anything outside a test writes a file. It is the reason this issue exists before any consumer stores anything.

Reference

docs/graph-lite/persistence.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions