Merge "Use WAL mode for SQLite cache"

This commit is contained in:
Zuul 2023-12-07 16:01:46 +00:00 committed by Gerrit Code Review
commit 19acb66e91
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