Switch to WAL mode as it's faster on older sqlite
This commit is contained in:
parent
7aff97b6ff
commit
8c52038671
1 changed files with 1 additions and 0 deletions
|
@ -177,6 +177,7 @@ class Db(object):
|
|||
self.connect()
|
||||
|
||||
cur = DbCursor(self.conn, self)
|
||||
cur.execute('PRAGMA journal_mode=WAL')
|
||||
if self.foreign_keys:
|
||||
cur.execute("PRAGMA foreign_keys = ON")
|
||||
|
||||
|
|
Loading…
Reference in a new issue