← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~stevenk/launchpad/denorm-bspph-indices into lp:launchpad/db-devel

 

Steve Kowalik has proposed merging lp:~stevenk/launchpad/denorm-bspph-indices into lp:launchpad/db-devel.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~stevenk/launchpad/denorm-bspph-indices/+merge/75094

Add two indexes to the {B,S}PPH denormalisation work.
-- 
https://code.launchpad.net/~stevenk/launchpad/denorm-bspph-indices/+merge/75094
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~stevenk/launchpad/denorm-bspph-indices into lp:launchpad/db-devel.
=== added file 'database/schema/patch-2208-87-1.sql'
--- database/schema/patch-2208-87-1.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2208-87-1.sql	2011-09-13 00:08:19 +0000
@@ -0,0 +1,9 @@
+-- Copyright 2011 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 binarypackagepublishinghistory__binarypackagename__idx ON BinaryPackagePublishingHistory(binarypackagename);
+CREATE INDEX sourcepackagepublishinghistory__sourcepackagename__idx ON SourcePackagePublishingHistory(sourcepackagename);
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2208, 87, 1);
+