Use WAL mode for SQLite cache
Change-Id: Idcca63c5365ef741a9f137a2b3b500b0c6cb7cef
This commit is contained in:
parent
0246649c06
commit
259671612a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue