← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~cjwatson/launchpad/db-buildinfo-indexes into lp:launchpad/db-devel

 

Colin Watson has proposed merging lp:~cjwatson/launchpad/db-buildinfo-indexes into lp:launchpad/db-devel.

Commit message:
Add indexes on SourcePackageRelease.buildinfo and BinaryPackageBuild.buildinfo.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers): db

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/db-buildinfo-indexes/+merge/322257

Needed for librarian-gc.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~cjwatson/launchpad/db-buildinfo-indexes into lp:launchpad/db-devel.
=== added file 'database/schema/patch-2209-82-1.sql'
--- database/schema/patch-2209-82-1.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-82-1.sql	2017-04-09 13:21:24 +0000
@@ -0,0 +1,11 @@
+-- Copyright 2017 Canonical Ltd.  This software is licensed under the
+-- GNU Affero General Public License version 3 (see the file LICENSE).
+
+SET client_min_messages=ERROR;
+
+CREATE INDEX sourcepackagerelease__buildinfo__idx
+    ON SourcePackageRelease (buildinfo);
+CREATE INDEX binarypackagebuild__buildinfo__idx
+    ON BinaryPackageBuild (buildinfo);
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 82, 1);