Files
duplicati/Duplicati/Library/Main/Database/Database schema/1. Add index.sql
T
Kenneth Skovhede d05f6f1324 Improved performance when running with all in-memory caches disabled by a factor of 16.
On a smaller dataset, the performance is now only a little more than twice as slow with a low memory footprint compared to the default with all memory caches enabled.
2014-10-30 23:45:36 +01:00

11 lines
554 B
SQL

CREATE UNIQUE INDEX "FilePath" ON "File" ("Path", "BlocksetID", "MetadataID");
CREATE UNIQUE INDEX "BlocksetFullHash" ON "Blockset" ("FullHash", "Length");
CREATE UNIQUE INDEX "BlockHashSize" ON Block ("Hash", "Size");
CREATE UNIQUE INDEX "RemotevolumeName" ON "Remotevolume" ("Name", "State")
CREATE INDEX "BlocksetEntryIds_Forward" ON "BlocksetEntry" ("BlocksetID", "BlockID");
CREATE INDEX "BlocksetEntryIds_Backwards" ON "BlocksetEntry" ("BlockID", "BlocksetID");
CREATE INDEX "MetadatasetBlocksetID" ON "Metadataset" ("BlocksetID");