`PRAGMA busy_timeout = 5000` tells SQLite to keep trying for up to 5000 ms when there is lock contention, rather than aborting immediately. This should hopefully prevent the vast majority of "database is locked" panics observed since the async transition. `PRAGMA synchronous = NORMAL` trades better performance for a small potential loss in durability (the default is `FULL`). The SQLite docs recommend `NORMAL` as "a good choice for most applications running in WAL mode".pull/2440/head
parent
b617ffd2af
commit
78d07e2fda
Loading…
Reference in new issue