From c054fa3c119684e846af6034080bd2f2e721fb8c Mon Sep 17 00:00:00 2001 From: Username Date: Sat, 20 Dec 2025 18:25:33 +0100 Subject: [PATCH] mysqlite: enable WAL mode for better concurrency --- mysqlite.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mysqlite.py b/mysqlite.py index ab519b0..08ba9f1 100644 --- a/mysqlite.py +++ b/mysqlite.py @@ -39,3 +39,6 @@ class mysqlite: if factory: self.handle.text_factory = factory self.cursor = self.handle.cursor() self.dbname = database + # enable WAL mode for better concurrency + self.cursor.execute('PRAGMA journal_mode=WAL') + self.cursor.execute('PRAGMA synchronous=NORMAL')