← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~deryck/launchpad/product-information-type-idx-1083197 into lp:launchpad

 

Deryck Hodge has proposed merging lp:~deryck/launchpad/product-information-type-idx-1083197 into lp:launchpad.

Commit message:
Add an index for Product.information_type.

Requested reviews:
  Stuart Bishop (stub): db

For more details, see:
https://code.launchpad.net/~deryck/launchpad/product-information-type-idx-1083197/+merge/136242

This branch adds an index for Product.information_type.  I have another branch coming shortly to change the column to be not null and default 1.  I'm applying this to devel, since as I understand it, indexes should be added via a patch through devel.

This is similar to how we did an index for Specification.information_type/
-- 
https://code.launchpad.net/~deryck/launchpad/product-information-type-idx-1083197/+merge/136242
Your team Launchpad code reviewers is subscribed to branch lp:launchpad.
=== added file 'database/schema/patch-2209-35-2.sql'
--- database/schema/patch-2209-35-2.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-35-2.sql	2012-11-26 18:59:32 +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 product__information_type__idx ON Product(information_type);
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 35, 2);


Follow ups