Revert "Apply IndexBuildsOnJobFinishedId to unfinished builds only"

This reverts commit 1de5ce7a0e.
This commit is contained in:
Eelco Dolstra 2016-03-16 17:04:20 +01:00
parent 7d8bf1b0f2
commit ac23bd1539
2 changed files with 1 additions and 3 deletions

View file

@ -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) where finished = 0;
create index IndexBuildsOnJobFinishedId on builds(project, jobset, job, system, finished, id DESC);
create index IndexBuildsOnDrvPath on Builds(drvPath);
create index IndexCachedHgInputsOnHash on CachedHgInputs(uri, branch, sha256hash);
create index IndexCachedGitInputsOnHash on CachedGitInputs(uri, branch, sha256hash);

View file

@ -1,2 +0,0 @@
drop index IndexBuildsOnJobFinishedId;
create index IndexBuildsOnJobFinishedId on builds(project, jobset, job, system, finished, id DESC) where finished = 0;