diff --git a/api/server.py b/api/server.py index 11b150b..18047be 100644 --- a/api/server.py +++ b/api/server.py @@ -378,6 +378,7 @@ def db() -> sqlite3.Connection: conn = sqlite3.connect(DB_PATH, timeout=30) conn.row_factory = sqlite3.Row conn.execute("PRAGMA busy_timeout=30000") + conn.execute("PRAGMA journal_mode=WAL") if _schema_path == DB_PATH: return conn _schema_lock.acquire()