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