mysqlite: enable WAL mode for better concurrency

This commit is contained in:
Username
2025-12-20 18:25:33 +01:00
parent 86cabd1562
commit c054fa3c11

View File

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