From e4c33ceb36cce15f960cde259ca01efb52c3b4aa Mon Sep 17 00:00:00 2001 From: "Bora M. Alper" Date: Mon, 29 May 2017 22:00:37 +0300 Subject: [PATCH] magneticod: store temp files in files and not in memory (reduces the memory consumption) --- magneticod/magneticod/persistence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magneticod/magneticod/persistence.py b/magneticod/magneticod/persistence.py index 56d1966..47b3872 100644 --- a/magneticod/magneticod/persistence.py +++ b/magneticod/magneticod/persistence.py @@ -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: