Merge lp:~stevenk/launchpad/index-searchables-for-pu into lp:launchpad

Proposed by Steve Kowalik
Status: Merged
Approved by: Steve Kowalik
Approved revision: no longer in the source branch.
Merged at revision: 16375
Proposed branch: lp:~stevenk/launchpad/index-searchables-for-pu
Merge into: lp:launchpad
Diff against target: 15 lines (+11/-0)
1 file modified
database/schema/patch-2209-40-2.sql (+11/-0)
To merge this branch: bzr merge lp:~stevenk/launchpad/index-searchables-for-pu
Reviewer Review Type Date Requested Status
William Grant db Approve
Review via email: mp+140120@code.launchpad.net

Commit message

Add indices to the new PackageUpload columns -- searchable_names and searchable_versions.

Description of the change

Add indices to the new PackageUpload columns -- searchable_names and searchable_versions.

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve (db)
Revision history for this message
Stuart Bishop (stub) wrote :

Applied to launchpad_qastaging

Revision history for this message
Stuart Bishop (stub) wrote :

Applied to production

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'database/schema/patch-2209-40-2.sql'
2--- database/schema/patch-2209-40-2.sql 1970-01-01 00:00:00 +0000
3+++ database/schema/patch-2209-40-2.sql 2012-12-17 00:51:22 +0000
4@@ -0,0 +1,11 @@
5+-- Copyright 2012 Canonical Ltd. This software is licensed under the
6+-- GNU Affero General Public License version 3 (see the file LICENSE).
7+
8+SET client_min_messages=ERROR;
9+
10+CREATE INDEX packageupload__searchable_names__idx ON packageupload
11+ USING gin ((searchable_names::tsvector));
12+CREATE INDEX packageupload__searchable_versions__idx ON packageupload
13+ USING gin (searchable_versions);
14+
15+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 40, 2);