From 76db56635e4277804982f04b3828a8cd88093963 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 27 Mar 2008 10:08:07 +0000 Subject: Bug 372795: Implement Bugzilla::Product::preload() to speed up query.cgi when there are many products Patch By Max Kanat-Alexander r=LpSolit, a=mkanat --- query.cgi | 1 + 1 file changed, 1 insertion(+) (limited to 'query.cgi') diff --git a/query.cgi b/query.cgi index dbdf69be9..5998c31ab 100755 --- a/query.cgi +++ b/query.cgi @@ -189,6 +189,7 @@ if (!scalar(@{$default{'chfieldto'}}) || $default{'chfieldto'}->[0] eq "") { # don't have access to. Remove them from the list. my @selectable_products = sort {lc($a->name) cmp lc($b->name)} @{$user->get_selectable_products}; +Bugzilla::Product::preload(\@selectable_products); # Create the component, version and milestone lists. my %components; -- cgit v1.2.3-24-g4f1b