Open penberg opened 3 months ago
SQLite acquires a POSIX advisory lock by default for every read transaction. Let's consider switching to PRAGMA locking_mode=EXCLUSIVE to make SQLite acquire the POSIX advisory lock when a database file is opened, which improves read performance.
PRAGMA locking_mode=EXCLUSIVE
FYI @MarinPostma
Also for embedded replicas (CC @LucioFranco )
SQLite acquires a POSIX advisory lock by default for every read transaction. Let's consider switching to
PRAGMA locking_mode=EXCLUSIVE
to make SQLite acquire the POSIX advisory lock when a database file is opened, which improves read performance.