Merge lp:~wgrant/launchpad/livefsfile-libraryfile-index into lp:launchpad

Proposed by William Grant
Status: Merged
Merged at revision: 18832
Proposed branch: lp:~wgrant/launchpad/livefsfile-libraryfile-index
Merge into: lp:launchpad
Diff against target: 13 lines (+9/-0)
1 file modified
database/schema/patch-2209-56-4.sql (+9/-0)
To merge this branch: bzr merge lp:~wgrant/launchpad/livefsfile-libraryfile-index
Reviewer Review Type Date Requested Status
William Grant db Approve
Review via email: mp+360114@code.launchpad.net

Commit message

Add missing index on LiveFSFile.libraryfile.

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'database/schema/patch-2209-56-4.sql'
2--- database/schema/patch-2209-56-4.sql 1970-01-01 00:00:00 +0000
3+++ database/schema/patch-2209-56-4.sql 2018-12-05 11:26:37 +0000
4@@ -0,0 +1,9 @@
5+-- Copyright 2018 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 livefsfile__libraryfile__idx ON livefsfile(libraryfile);
11+CREATE INDEX snapfile__libraryfile__idx ON snapfile(libraryfile);
12+
13+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 56, 4);