Colin Watson has proposed merging lp:~cjwatson/launchpad/more-job-indexes into lp:launchpad.
Commit message: Index ProductJob(job) and SnapBuild(build_request), as otherwise we incur full table scans when deleting Job rows. Requested reviews: Launchpad code reviewers (launchpad-reviewers) Related bugs: Bug #1828062 in Launchpad itself: "Cannot remove candid github build from build.snapcraft.io" https://bugs.launchpad.net/launchpad/+bug/1828062 For more details, see: https://code.launchpad.net/~cjwatson/launchpad/more-job-indexes/+merge/367063 -- Your team Launchpad code reviewers is requested to review the proposed merge of lp:~cjwatson/launchpad/more-job-indexes into lp:launchpad.
=== added file 'database/schema/patch-2210-01-1.sql' --- database/schema/patch-2210-01-1.sql 1970-01-01 00:00:00 +0000 +++ database/schema/patch-2210-01-1.sql 2019-05-07 16:00:13 +0000 @@ -0,0 +1,9 @@ +-- Copyright 2019 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 UNIQUE INDEX productjob__job__key ON ProductJob (job); +CREATE INDEX snapbuild__build_request__idx ON SnapBuild (build_request); + +INSERT INTO LaunchpadDatabaseRevision VALUES (2210, 01, 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

