← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~stevenk/launchpad/spph-packageupload-index-redux into lp:launchpad

 

Steve Kowalik has proposed merging lp:~stevenk/launchpad/spph-packageupload-index-redux into lp:launchpad.

Requested reviews:
  Robert Collins (lifeless): db
  Stuart Bishop (stub)

For more details, see:
https://code.launchpad.net/~stevenk/launchpad/spph-packageupload-index-redux/+merge/108852

Add an index on SourcePackagePublishingHistory.id when packageupload is unset so that the query contained in https://code.launchpad.net/~stevenk/launchpad/set-spph-packageupload/+merge/108513 makes use of this index to find SPPHs that need to be checked.
-- 
https://code.launchpad.net/~stevenk/launchpad/spph-packageupload-index-redux/+merge/108852
Your team Launchpad code reviewers is subscribed to branch lp:launchpad.
=== added file 'database/schema/patch-2209-15-3.sql'
--- database/schema/patch-2209-15-3.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-15-3.sql	2012-06-05 23:48:24 +0000
@@ -0,0 +1,8 @@
+-- Copyright 2012 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 sourcepackagepublishinghistory__packageupload__idx ON sourcepackagepublishinghistory USING btree (id) WHERE packageupload IS NULL;
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 15, 3);


Follow ups