diff --git a/receipts.py b/receipts.py index 159dbd1..887b12a 100644 --- a/receipts.py +++ b/receipts.py @@ -37,6 +37,7 @@ def __init__( for _ in range(self.connection_pool_size): conn = sqlite3.connect(self.db_path, check_same_thread=False) conn.execute("PRAGMA journal_mode=WAL") + conn.execute("PRAGMA synchronous=NORMAL") conn.execute("PRAGMA busy_timeout=5000") # 5 second timeout self.pool.put(conn)