imv-database: Improve performance by creating file_hashes index

This commit is contained in:
Andreas Steffen
2017-08-07 17:43:54 +02:00
parent e64cdb15c5
commit 3295b35c6a
+2
View File
@@ -48,6 +48,8 @@ CREATE TABLE file_hashes (
hash VARCHAR(64) NOT NULL,
mutable INTEGER DEFAULT 0
);
DROP INDEX IF EXISTS "file_hashes_idx";
CREATE INDEX "file_hashes_idx" ON "file_hashes" ("file", "version", "algo");
DROP TABLE IF EXISTS groups;
CREATE TABLE groups (