Changelog and roadmap

Foundation crates and studies

Entries for the first crates (raftdb-db, raftdb-schema, raftdb-store, raftdb-wal, raftdb-exec, raftdb-doc, raftdb-table, raftdb-bench) and studies 00 to 11.

Unreleased version (Stage 0), section Added. Newest first; the last entries are the oldest.

  • raftdb-db: durable Table (schema check, log, in-memory collection, replay on open, field dictionary in the log); 3 tests; suite db (3.43M durable inserts/s with a flusher thread, 134k/s with blocking commits; replay 3.23M records/s).
  • raftdb-schema: strict document schema (types without coercion, required, nullable, ranges, nested objects and arrays) checked on the binary form; 4 tests; suite schema (3.16M docs/s, 0 false rejects, 100 % of wrong-type documents caught).
  • Scan interface: raftdb-exec Docs trait, raftdb-table for_each, raftdb-store Collection::snapshot(); filters run over a collection at 13.8M docs/s (1 thread), 59.7M docs/s (6 threads).
  • raftdb-store: in-memory key -> document collection (arena + raftdb-table index), get_batch; 6 tests; suite store (15.7 B/entry, 5.97M windowed reads/s). First Stage 1 piece.
  • The Studio plan: plan for the SQL / JSON management studio (proposed).
  • raftdb-sim: deterministic simulation (seeded generator, disk that keeps/tears/loses unsynced sectors on crash, random flush/sync/crash schedules checking the real raftdb-wal scan); 5 tests; suite sim (1M schedules, 0 violations; planted recovery bug found in 104 schedules). Study 10 (FoundationDB).
  • raftdb-mvcc: 12-byte row-version header and InnoDB-style snapshot visibility and purge horizon; 4 tests; suite mvcc. Study 09 (InnoDB vs PostgreSQL).
  • raftdb-bloom: cache-local bloom filter (one cache line per lookup), explicit little-endian stored form; 4 tests; suite bloom (0.97 % false positives, 1.25 B/key). Study 08 (RocksDB).
  • Study 11: Raft library comparison and the decision to write our own Raft core.
  • raftdb-spsc: lock-free single-producer single-consumer ring with batch publish; 5 tests incl. 10 M items across two threads. Suite shard in raftdb-bench (ring speed, routed reads, connection-state model). Study 05 (Seastar). Targets S2_RING_MSGS_PER_SEC, S2_READS_PER_SEC.
  • raftdb-wal: write-ahead log with CRC-32C records, leader/follower group commit, torn-tail recovery; 10 tests incl. every torn length and every bit flip. Suite wal in raftdb-bench. Study 07 (PostgreSQL). Targets S4_DURABLE_P99_MILLIS, N10_RECOVERY_MB_PER_SEC.
  • raftdb-exec: filter Plan IR, JSON filter compiler ($eq $ne $gt $gte $lt $lte $in $nin $exists $not $and $or, dotted paths), batched executor (count, select), minimal JSON reader. 4 tests against an independent Rust model.
  • raftdb-bench suites exec-filter and corpus generator; study 06 (DuckDB).
  • raftdb-doc: binary document format with field dictionary, masked objects, i24, decimal floats, strict comparison, corruption-safe reads. 9 tests.
  • raftdb-table: SlotTable, Dashtable-style hash index, prefetch. 3 tests.
  • raftdb-bench: counting allocator, latency histograms, JSON reports with targets; suites memory-baseline, doc-format.
  • raftdb-core: shared numeric targets as constants.
  • Documentation standard enforced by lints; decision log; per-crate documents.
  • Studies 00-04 and 06 (research notes).