Don't use WAL mode for sqlite connections, it is not making any difference

This commit is contained in:
croneter 2019-12-06 08:59:01 +01:00
parent f4ea051c81
commit 9080ca89b9

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')