diff --git a/src/sql/hydra.sql b/src/sql/hydra.sql index 8183770e..f3f385e8 100644 --- a/src/sql/hydra.sql +++ b/src/sql/hydra.sql @@ -409,3 +409,6 @@ create index IndexBuildInputsByDependency on BuildInputs(dependency); create index IndexBuildsByTimestamp on Builds(timestamp); create index IndexBuildsByJobAndSystem on Builds(project, jobset, job, system); create index IndexBuildResultInfo on BuildResultInfo(id); -- primary key index, not created automatically by PostgreSQL + +create index indexbuild on buildproducts(build) +create index indexbuildtype on buildproducts(build, type)