From 8d0ea54fa99fa682a6a54dacb971d0129c78edad Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 29 Nov 2011 18:09:04 +0100 Subject: [PATCH] Speed up the /jobset overview pages a lot --- src/sql/hydra.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sql/hydra.sql b/src/sql/hydra.sql index 3feece9e..951a4b20 100644 --- a/src/sql/hydra.sql +++ b/src/sql/hydra.sql @@ -525,12 +525,14 @@ create index IndexBuildStepsOnOutpathBuild on BuildSteps (outpath, build); create index IndexBuildsOnFinished on Builds(finished); create index IndexBuildsOnIsCurrent on Builds(isCurrent); create index IndexBuildsOnJobsetIsCurrent on Builds(project, jobset, isCurrent); +create index IndexBuildsOnJobIsCurrent on Builds(project, jobset, job, isCurrent); --create index IndexBuildsOnJob on Builds(project, jobset, job); --create index IndexBuildsOnJobAndIsCurrent on Builds(project, jobset, job, isCurrent); create index IndexBuildsOnJobAndSystem on Builds(project, jobset, job, system); create index IndexBuildsOnJobset on Builds(project, jobset); create index IndexBuildsOnProject on Builds(project); create index IndexBuildsOnTimestamp on Builds(timestamp); +create index IndexBuildsOnJobsetFinishedTimestamp on Builds(project, jobset, finished, timestamp); 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);