From ac23bd1539d222ceda5ec85c054454df2c25a799 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 16 Mar 2016 17:04:20 +0100 Subject: [PATCH] Revert "Apply IndexBuildsOnJobFinishedId to unfinished builds only" This reverts commit 1de5ce7a0e4c28acd3766fa19a9b94fd75436430. --- src/sql/hydra.sql | 2 +- src/sql/upgrade-47.sql | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 src/sql/upgrade-47.sql diff --git a/src/sql/hydra.sql b/src/sql/hydra.sql index b2c61740..d53ba11f 100644 --- a/src/sql/hydra.sql +++ b/src/sql/hydra.sql @@ -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); diff --git a/src/sql/upgrade-47.sql b/src/sql/upgrade-47.sql deleted file mode 100644 index 3585b6a6..00000000 --- a/src/sql/upgrade-47.sql +++ /dev/null @@ -1,2 +0,0 @@ -drop index IndexBuildsOnJobFinishedId; -create index IndexBuildsOnJobFinishedId on builds(project, jobset, job, system, finished, id DESC) where finished = 0;