Merge lp:~stevenk/launchpad/db-add-bpph-index into lp:launchpad/db-devel

Proposed by Steve Kowalik on 2012-01-17
Status: Merged
Approved by: Steve Kowalik on 2012-01-18
Approved revision: no longer in the source branch.
Merged at revision: 11310
Proposed branch: lp:~stevenk/launchpad/db-add-bpph-index
Merge into: lp:launchpad/db-devel
Diff against target: 14 lines (+10/-0)
1 file modified
database/schema/patch-2209-05-1.sql (+10/-0)
To merge this branch: bzr merge lp:~stevenk/launchpad/db-add-bpph-index
Reviewer Review Type Date Requested Status
Stuart Bishop db 2012-01-17 Approve on 2012-01-18
Review via email: mp+88824@code.launchpad.net

Commit Message

[r=stub] Add a new index to BinaryPackagePublishingHistory.

Description of the Change

Add an index to BPPH to help with query performance.

To post a comment you must log in.
Stuart Bishop (stub) wrote :

Looks good. This should be applied live rather than a fast downtime deployment.

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-05-1.sql'
2--- database/schema/patch-2209-05-1.sql 1970-01-01 00:00:00 +0000
3+++ database/schema/patch-2209-05-1.sql 2012-01-17 09:01:27 +0000
4@@ -0,0 +1,10 @@
5+-- Copyright 2012 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 binarypackagepublishinghistory__archive__distroarchseries__status__binarypackagename__idx ON binarypackagepublishinghistory USING btree (archive, distroarchseries, status, binarypackagename);
11+
12+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 05, 1);
13+
14+

Subscribers

People subscribed via source and target branches

to status/vote changes: