William Grant has proposed merging lp:~wgrant/launchpad/bpn-spn-trgm-index into lp:launchpad.
Requested reviews: Stuart Bishop (stub): db For more details, see: https://code.launchpad.net/~wgrant/launchpad/bpn-spn-trgm-index/+merge/123208 My trigram index experiment on the sacrificial DistributionSourcePackageCache table worked fine, so let's expand it to SourcePackageName and BinaryPackageName. This is mostly to optimise the exact_match=False variants of getPublishedSources and getPublishedBinaries, taking a problematic example from ~200ms to 10ms. -- https://code.launchpad.net/~wgrant/launchpad/bpn-spn-trgm-index/+merge/123208 Your team Launchpad code reviewers is subscribed to branch lp:launchpad.
=== added file 'database/schema/patch-2209-23-1.sql' --- database/schema/patch-2209-23-1.sql 1970-01-01 00:00:00 +0000 +++ database/schema/patch-2209-23-1.sql 2012-09-07 03:38:22 +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 binarypackagename__name__idx ON binarypackagename + USING gin (name trgm.gin_trgm_ops); +CREATE INDEX sourcepackagename__name__idx ON sourcepackagename + USING gin (name trgm.gin_trgm_ops); + +INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 23, 1);
_______________________________________________ Mailing list: https://launchpad.net/~launchpad-reviewers Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-reviewers More help : https://help.launchpad.net/ListHelp

