Steve Kowalik has proposed merging lp:~stevenk/launchpad/buildfarmjob-index into lp:launchpad.
Requested reviews: Robert Collins (lifeless): db Stuart Bishop (stub): db Related bugs: Bug #1001838 in Launchpad itself: "Builder:+history timeouts due to terrible main query" https://bugs.launchpad.net/launchpad/+bug/1001838 For more details, see: https://code.launchpad.net/~stevenk/launchpad/buildfarmjob-index/+merge/123675 As one half of the fix for the linked bug, add an index onto BuildFarmJob. This will be used by <MP to be linked> to speed up the query used by Builder:+history from approximately 9 seconds to 2ms. -- https://code.launchpad.net/~stevenk/launchpad/buildfarmjob-index/+merge/123675 Your team Launchpad code reviewers is subscribed to branch lp:launchpad.
=== added file 'database/schema/patch-2209-27-3.sql' --- database/schema/patch-2209-27-3.sql 1970-01-01 00:00:00 +0000 +++ database/schema/patch-2209-27-3.sql 2012-09-11 04:34:21 +0000 @@ -0,0 +1,8 @@ +-- 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 buildfarmjob__builder__date_finished__id__idx ON BuildFarmJob(builder, date_finished DESC, id); + +INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 27, 3);
_______________________________________________ Mailing list: https://launchpad.net/~launchpad-reviewers Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-reviewers More help : https://help.launchpad.net/ListHelp

