Big speed-up in magneticow when clicking through to file list.

This commit is contained in:
Richard Kiss 2017-06-04 20:39:47 -07:00
parent ae3de526ec
commit 4e49b11f1d

View File

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