From 489e4f769701a759439af6f4880730c27da502a3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 5 Aug 2010 14:06:02 +0000 Subject: [PATCH] * Create some more indices on tables that have a foreign key reference to the Builds table. Otherwise deleting builds (e.g. when flushing the queue) is very slow. --- src/sql/hydra.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sql/hydra.sql b/src/sql/hydra.sql index 5c5e69b4..e08040ff 100644 --- a/src/sql/hydra.sql +++ b/src/sql/hydra.sql @@ -506,6 +506,8 @@ create index IndexCachedHgInputsOnHash on CachedHgInputs(uri, branch, sha256hash create index IndexCachedGitInputsOnHash on CachedGitInputs(uri, branch, sha256hash); create index IndexCachedGitInputsOnLastSeen on CachedGitInputs(uri, branch, lastSeen); create index IndexCachedSubversionInputsOnUriRevision on CachedSubversionInputs(uri, revision); +create index IndexJobsetEvalMembersOnBuild on JobsetEvalMembers(build); create index IndexJobsetInputAltsOnInput on JobsetInputAlts(project, jobset, input); create index IndexJobsetInputAltsOnJobset on JobsetInputAlts(project, jobset); create index IndexProjectsOnEnabled on Projects(enabled); +create index IndexReleaseMembersOnBuild on ReleaseMembers(build);