← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~stevenk/launchpad/branch-trgm-indicies into lp:launchpad

 

Steve Kowalik has proposed merging lp:~stevenk/launchpad/branch-trgm-indicies into lp:launchpad.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~stevenk/launchpad/branch-trgm-indicies/+merge/148080

Create GIN trigram indicies for Branch.name and Branch.unique_name to speed up the Branch vocabs.
-- 
https://code.launchpad.net/~stevenk/launchpad/branch-trgm-indicies/+merge/148080
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~stevenk/launchpad/branch-trgm-indicies into lp:launchpad.
=== added file 'database/schema/patch-2209-43-0.sql'
--- database/schema/patch-2209-43-0.sql	1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-43-0.sql	2013-02-13 03:28:21 +0000
@@ -0,0 +1,11 @@
+-- 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 branch__name__trgm ON branch
+    USING gin (name trgm.gin_trgm_ops);
+CREATE INDEX branch__unique_name__trgm ON branch
+    USING gin (unique_name trgm.gin_trgm_ops);
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 43, 0);