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: durableTable(schema check, log, in-memory collection, replay on open, field dictionary in the log); 3 tests; suitedb(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; suiteschema(3.16M docs/s, 0 false rejects, 100 % of wrong-type documents caught).- Scan interface:
raftdb-execDocstrait,raftdb-tablefor_each,raftdb-storeCollection::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-tableindex),get_batch; 6 tests; suitestore(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 realraftdb-walscan); 5 tests; suitesim(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; suitemvcc. Study 09 (InnoDB vs PostgreSQL).raftdb-bloom: cache-local bloom filter (one cache line per lookup), explicit little-endian stored form; 4 tests; suitebloom(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. Suiteshardinraftdb-bench(ring speed, routed reads, connection-state model). Study 05 (Seastar). TargetsS2_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. Suitewalinraftdb-bench. Study 07 (PostgreSQL). TargetsS4_DURABLE_P99_MILLIS,N10_RECOVERY_MB_PER_SEC.raftdb-exec: filterPlanIR, 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-benchsuitesexec-filterandcorpusgenerator; 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; suitesmemory-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).