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

Proposed by Colin Watson
Status: Merged
Merged at revision: 13660
Proposed branch: lp:~cjwatson/launchpad/db-buildinfo-indexes
Merge into: lp:launchpad/db-devel
Diff against target: 15 lines (+11/-0)
1 file modified
database/schema/patch-2209-82-1.sql (+11/-0)
To merge this branch: bzr merge lp:~cjwatson/launchpad/db-buildinfo-indexes
Reviewer Review Type Date Requested Status
William Grant db Approve
Review via email: mp+322257@code.launchpad.net

Commit message

Add indexes on SourcePackageRelease.buildinfo and BinaryPackageBuild.buildinfo.

Description of the change

Needed for librarian-gc.

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve (db)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'database/schema/patch-2209-82-1.sql'
2--- database/schema/patch-2209-82-1.sql 1970-01-01 00:00:00 +0000
3+++ database/schema/patch-2209-82-1.sql 2017-04-09 13:21:24 +0000
4@@ -0,0 +1,11 @@
5+-- Copyright 2017 Canonical Ltd. This software is licensed under the
6+-- GNU Affero General Public License version 3 (see the file LICENSE).
7+
8+SET client_min_messages=ERROR;
9+
10+CREATE INDEX sourcepackagerelease__buildinfo__idx
11+ ON SourcePackageRelease (buildinfo);
12+CREATE INDEX binarypackagebuild__buildinfo__idx
13+ ON BinaryPackageBuild (buildinfo);
14+
15+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 82, 1);

Subscribers

People subscribed via source and target branches

to status/vote changes: