Fix extremely slow removals

This commit is contained in:
p
2024-12-29 13:41:07 +01:00
parent ca462ac005
commit ce2e58b6bc
2 changed files with 7 additions and 5 deletions
+1
View File
@@ -23,6 +23,7 @@ CREATE TABLE IF NOT EXISTS node(
) STRICT;
CREATE INDEX IF NOT EXISTS node__sha1 ON node(sha1);
CREATE INDEX IF NOT EXISTS node__parent ON node(parent);
CREATE UNIQUE INDEX IF NOT EXISTS node__parent_name
ON node(IFNULL(parent, 0), name);