Conversation

Replying to
It's not well known you need BEGIN IMMEDIATE TRANSACTION instead of BEGIN TRANSACTION for read/write transactions if you're doing things in parallel. In WAL mode, another writer can write while you're reading, and then your transaction isn't allowed to upgrade to write lock.
1
1
Replying to
That failure mode can only happen in WAL mode. With a rollback journal, active read transactions prevent writers from committing a transaction, so there can't be any conflict.
2
Replying to and
I'm pretty sure the best way to enable concurrent reads and writes for the application I see will be to add read-only snapshots at the VFS level. Pessimistic concurrency control is fine when it's only for writers.
1
Show replies