Constant SYNCHRONOUS
pub const SYNCHRONOUS: i64 = 1;Available on crate features
event-store or projection-store only.Expand description
The synchronous setting every connection this crate opens runs under, as
the integer PRAGMA synchronous answers.
1 is NORMAL. Under WAL that is durable across a process crash and loses
at most the tail since the last checkpoint on power loss, which is the trade
a local-first store should be making rather than paying an fsync per event.
OFF is not a performance option here at all: spec/SPECIFICATION.md
names PRAGMA synchronous = OFF by name as the wrong implementation CF-14’s
reopen rule exists to reject. FULL is the other alternative that lost, on
cost (ADR-0022 §11).