Turn on SQLite WAL in Expo. It fixes “database is locked”.
Batch writes in one transaction. Fewer fsyncs. Faster UI.
Add a busy timeout + retry. Stops random write failures.
Measure it. I logged real timings per write batch.





Context


My fitness app needs 5-second set logging. No spinning loaders. No “try again” toast. And it has to...