From 9080ca89b9d1c9d7d352fc3cdb59e97f40b918f0 Mon Sep 17 00:00:00 2001 From: croneter Date: Fri, 6 Dec 2019 08:59:01 +0100 Subject: [PATCH] Don't use WAL mode for sqlite connections, it is not making any difference --- resources/lib/db.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/lib/db.py b/resources/lib/db.py index 30f91315..c7e0e0cb 100644 --- a/resources/lib/db.py +++ b/resources/lib/db.py @@ -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')