magneticod: store temp files in files and not in memory

(reduces the memory consumption)
This commit is contained in:
Bora M. Alper 2017-05-29 22:00:37 +03:00
parent 566ebea987
commit e4c33ceb36

View File

@ -39,7 +39,7 @@ class Database:
db_conn = sqlite3.connect(database, isolation_level=None)
db_conn.execute("PRAGMA journal_mode=WAL;")
db_conn.execute("PRAGMA temp_store = 2;")
db_conn.execute("PRAGMA temp_store=1;")
db_conn.execute("PRAGMA foreign_keys=ON;")
with db_conn: