Closed kapily closed 3 years ago
Since 2010, SQLite has supported WAL (Write Ahead Log) mode that supports multi-threaded writes. Without this mode enabled, SQLite throws errors when there are concurrent writes to a database and generally has poorer concurrent performance.
More background here: http://www.sqlite.org/wal.html
In this PR, I enabled WAL for non-in-memory SQLite databases.
See also: https://github.com/pudo/dataset/issues/239
@pudo could you please review it? It seems like a very useful feature
Sorry for the ultra-slow reaction. This looks well-engineered :)
Since 2010, SQLite has supported WAL (Write Ahead Log) mode that supports multi-threaded writes. Without this mode enabled, SQLite throws errors when there are concurrent writes to a database and generally has poorer concurrent performance.
More background here: http://www.sqlite.org/wal.html
In this PR, I enabled WAL for non-in-memory SQLite databases.
See also: https://github.com/pudo/dataset/issues/239