Apply IndexBuildsOnJobFinishedId to unfinished builds only
This commit is contained in:
parent
520c8a5826
commit
1de5ce7a0e
|
@ -637,7 +637,7 @@ create index IndexBuildsOnJobset on Builds(project, jobset);
|
|||
create index IndexBuildsOnProject on Builds(project);
|
||||
create index IndexBuildsOnTimestamp on Builds(timestamp);
|
||||
create index IndexBuildsOnFinishedStopTime on Builds(finished, stoptime DESC);
|
||||
create index IndexBuildsOnJobFinishedId on builds(project, jobset, job, system, finished, id DESC);
|
||||
create index IndexBuildsOnJobFinishedId on builds(project, jobset, job, system, finished, id DESC) where finished = 0;
|
||||
create index IndexBuildsOnDrvPath on Builds(drvPath);
|
||||
create index IndexCachedHgInputsOnHash on CachedHgInputs(uri, branch, sha256hash);
|
||||
create index IndexCachedGitInputsOnHash on CachedGitInputs(uri, branch, sha256hash);
|
||||
|
|
2
src/sql/upgrade-47.sql
Normal file
2
src/sql/upgrade-47.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
drop index IndexBuildsOnJobFinishedId;
|
||||
create index IndexBuildsOnJobFinishedId on builds(project, jobset, job, system, finished, id DESC) where finished = 0;
|
Loading…
Reference in a new issue