Merge pull request #1079 from croneter/wal

Don't use WAL mode for sqlite connections, it is not making any difference
This commit is contained in:
croneter 2019-12-08 10:32:03 +01:00 committed by GitHub
commit 4ebe11fcc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,9 +58,10 @@ def _initial_db_connection_setup(conn, wal_mode):
before. Also start a transaction
"""
if wal_mode:
conn.execute('PRAGMA journal_mode=WAL;')
conn.execute('PRAGMA cache_size = -8000;')
conn.execute('PRAGMA synchronous=NORMAL;')
pass
# conn.execute('PRAGMA journal_mode=WAL;')
# conn.execute('PRAGMA cache_size = -8000;')
# conn.execute('PRAGMA synchronous=NORMAL;')
conn.execute('BEGIN')