Use WAL mode for SQLite cache
Change-Id: Idcca63c5365ef741a9f137a2b3b500b0c6cb7cef
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user