Commit graph

1 commit

Author SHA1 Message Date
Mario Zechner
fabf916fcf feat(durable): SqliteStorage commits a group in a few statements
SqliteStorage.commit(batches) reads the check state of all batches up front,
checks each batch in memory against what the earlier ones left (same
prefix-stop refusals, no savepoints), and writes the accepted batches per
table: small rows as one JSON array parameter (json_each), rows with much
text bound column by column within 100 parameters. A group commit over a
remote SQLite takes a few round trips instead of about eight per batch;
local groups are faster too. Randomized differential test against
MemoryStorage, raw-table and statement-count guards.
2026-11-04 19:53:23 +00:00