forked from lix-project/hydra
IndexJobsetEvalsOnJobsetId: Only index jobsets with new builds
This commit is contained in:
parent
b09f7e0989
commit
3bb9e17e5c
|
@ -623,4 +623,4 @@ create index IndexReleaseMembersOnBuild on ReleaseMembers(build);
|
|||
create index IndexBuildsOnKeep on Builds(keep) where keep = 1;
|
||||
|
||||
-- To get the most recent eval for a jobset.
|
||||
create index IndexJobsetEvalsOnJobsetId on JobsetEvals(project, jobset, hasNewBuilds, id desc);
|
||||
create index IndexJobsetEvalsOnJobsetId on JobsetEvals(project, jobset, id desc) where hasNewBuilds = 1;
|
||||
|
|
2
src/sql/upgrade-38.sql
Normal file
2
src/sql/upgrade-38.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
drop index IndexJobsetEvalsOnJobsetId;
|
||||
create index IndexJobsetEvalsOnJobsetId on JobsetEvals(project, jobset, id desc) where hasNewBuilds = 1;
|
Loading…
Reference in a new issue