Merge pull request #846 from grahamc/buildoutputs-index-hash-path

BuildOutputs: index path with HASH
This commit is contained in:
Eelco Dolstra 2021-01-18 20:01:44 +01:00 committed by GitHub
commit 6bb876cb35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -613,6 +613,8 @@ create index IndexJobsetEvalMembersOnEval on JobsetEvalMembers(eval);
create index IndexJobsetInputAltsOnInput on JobsetInputAlts(project, jobset, input);
create index IndexJobsetInputAltsOnJobset on JobsetInputAlts(project, jobset);
create index IndexProjectsOnEnabled on Projects(enabled);
create index IndexBuildOutputsPath on BuildOutputs using hash(path);
-- For hydra-update-gc-roots.
create index IndexBuildsOnKeep on Builds(keep) where keep = 1;

1
src/sql/upgrade-69.sql Normal file
View file

@ -0,0 +1 @@
create index IndexBuildOutputsPath on BuildOutputs using hash(path);