问题
I plan to use Sqlite with WAL mode (on a web server).
As I understand, the reads are never blocked with this mode, even when write occurs in the same time.
There is still only one write transaction at a time but I guess the lock time is short because the actual write on the db occurs only when the WAL file exceed a certain size.
So :
How much time should I expect to be locked in WAL mode when the transaction is written on the WAL file ? When the WAL file is commited ?
Is there any benchmarks out there testing that point ?
thanks.
来源:https://stackoverflow.com/questions/56865379/sqlite-wal-mode-how-much-time-should-i-expect-to-be-locked-in-wal-mode