From 4e49b11f1de0601e36a863111e1ded6fc873a052 Mon Sep 17 00:00:00 2001 From: Richard Kiss Date: Sun, 4 Jun 2017 20:39:47 -0700 Subject: [PATCH] Big speed-up in magneticow when clicking through to file list. --- magneticod/magneticod/persistence.py | 1 + 1 file changed, 1 insertion(+) diff --git a/magneticod/magneticod/persistence.py b/magneticod/magneticod/persistence.py index e1a57de..d16316f 100644 --- a/magneticod/magneticod/persistence.py +++ b/magneticod/magneticod/persistence.py @@ -57,6 +57,7 @@ class Database: "size INTEGER NOT NULL," "path TEXT NOT NULL" ");") + db_conn.execute("CREATE INDEX IF NOT EXISTS file_info_hash_index on files (torrent_id);") return db_conn