nkessling /tidewater⑂ mainRust★ 4,812⑂ 211last commit 2h ago
README.mdrendered
# tidewater
Crash-safe write-ahead log for embedded databases.
buildpassingcrate2.1.0msrv1.76licenseMIT
## Why
Group commit batches concurrent writers into one fsync. After a segment rotates, the directory is fsynced too, so a crash can never leave a segment the log cannot find.
## Install
$ cargo add tidewater
## Numbers
workload
tidewater
fsync each write
append 4 KiB
1.92 GB/s
0.21 GB/s
p99 commit
2.1 ms
9.8 ms
recovery 8 GB
3.4 s
11.0 s
Runs under three production databases and one payments ledger.
COMMITS · main8 shown
fix(wal): fsync the directory after a segment rotates