Files
turso/perf
Pekka Enberg 3637f6b474 perf/latency: retry SQLite BEGIN IMMEDIATE on SQLITE_BUSY
The SQLite writer unwrapped BEGIN IMMEDIATE, so a connection that could
not get the write lock within the busy timeout panicked and aborted the
whole run. This happened in the third SQLite run with 16 connections on
2026-09-23: three threads failed with "database is locked" about 60 s
into the run, which is the busy timeout.

SQLite's default busy handler polls for the lock with sleeps of up to
100 ms instead of queueing for it, so with many writers one connection
can keep losing the lock to the others for the whole timeout. The
transaction has not written anything yet, so it now starts over. The
wait stays in its sample, restarts are recorded per sample like on the
Turso side, and the summary prints the total.
2026-09-23 13:07:25 +03:00
..
2026-09-17 18:47:20 +00:00
2026-06-23 14:38:11 +03:00