Use WAL mode for SQLite cache

Change-Id: Idcca63c5365ef741a9f137a2b3b500b0c6cb7cef
This commit is contained in:
Dmitry Tantsur 2023-09-14 15:08:35 +02:00
parent 0246649c06
commit 259671612a
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ class PersistentDict(MutableMapping):
raise TypeError('Dict is not yet persistent')
with sqlite3.connect(self._dbpath) as connection:
connection.execute("pragma journal_mode=wal")
yield connection.cursor()
@_retry