Switch to WAL mode as it's faster on older sqlite

This commit is contained in:
shortcutme 2019-03-20 00:49:51 +01:00
parent 7aff97b6ff
commit 8c52038671
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -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")