screentinker/server/db
ScreenTinker de7bd18bf3 fix(db): off-main-thread WAL checkpointer (worker) to kill the ~60s p99 checkpoint spike
Disable wal_autocheckpoint on the main connection; run PASSIVE checkpoints from a
worker_threads worker with its OWN better-sqlite3 handle, escalating to TRUNCATE on a
size high-water or PASSIVE-starvation. Removes the synchronous fsync-heavy checkpoint
from the event loop. Config: walCheckpointIntervalMs/HighWaterMB/StarvationRuns.
Local only — no bump/tag.
2026-07-06 23:50:18 -05:00
..
database.js feat(#146): usage metering + admin-gated Billable Screens report (contract system-of-record) 2026-07-01 20:45:27 -05:00
schema.sql feat(#146): billing:read scoped token — dual-path auth for the Usage Report (Option C) 2026-07-01 21:16:21 -05:00
wal-checkpointer-worker.js fix(db): off-main-thread WAL checkpointer (worker) to kill the ~60s p99 checkpoint spike 2026-07-06 23:50:18 -05:00
wal-checkpointer.js fix(db): off-main-thread WAL checkpointer (worker) to kill the ~60s p99 checkpoint spike 2026-07-06 23:50:18 -05:00