Merge ~cjwatson/launchpad:db-bmp-git-indexes into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: d1bb8f4d5e10f8a31c8b38ea10a6a03311982f2a
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:db-bmp-git-indexes
Merge into: launchpad:master
Diff against target: 19 lines (+13/-0)
1 file modified
database/schema/patch-2210-01-2.sql (+13/-0)
Reviewer Review Type Date Requested Status
William Grant db Approve
Review via email: mp+373736@code.launchpad.net

Commit message

Index BranchMergeProposal(*_git_{repository,path})

These are used by GitCollection.getMergeProposals.

LP: #1847090

Description of the change

We can apply this DB patch live.

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
1diff --git a/database/schema/patch-2210-01-2.sql b/database/schema/patch-2210-01-2.sql
2new file mode 100644
3index 0000000..5350730
4--- /dev/null
5+++ b/database/schema/patch-2210-01-2.sql
6@@ -0,0 +1,13 @@
7+-- Copyright 2019 Canonical Ltd. This software is licensed under the
8+-- GNU Affero General Public License version 3 (see the file LICENSE).
9+
10+SET client_min_messages=ERROR;
11+
12+CREATE INDEX branchmergeproposal__source_git_repository__source_git_path__idx
13+ ON BranchMergeProposal (source_git_repository, source_git_path);
14+CREATE INDEX branchmergeproposal__target_git_repository__target_git_path__idx
15+ ON BranchMergeProposal (target_git_repository, target_git_path);
16+CREATE INDEX branchmergeproposal__dependent_git_repository__dependent_git_path__idx
17+ ON BranchMergeProposal (dependent_git_repository, dependent_git_path);
18+
19+INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 01, 2);

Subscribers

People subscribed via source and target branches

to status/vote changes: