diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-01-04 03:09:42 +0100 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-01-04 03:09:42 +0100 |
commit | b6d1cc32f75d47437e382caccfccc5b2d98af765 (patch) | |
tree | 2ceff059de13f820287c0a84f248d55ef5630aff /show_bug.cgi | |
parent | a1fa8d5f9f196d8611c64c1625e8269c9df52214 (diff) | |
download | bugzilla-b6d1cc32f75d47437e382caccfccc5b2d98af765.tar.gz bugzilla-b6d1cc32f75d47437e382caccfccc5b2d98af765.tar.xz |
Bug 595410: Make it faster to display a bug that has a lot of dependencies.
r=LpSolit, a=LpSolit
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-x | show_bug.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/show_bug.cgi b/show_bug.cgi index 64d2e875f..7ea55e732 100755 --- a/show_bug.cgi +++ b/show_bug.cgi @@ -52,7 +52,7 @@ if (!$cgi->param('id') && $single) { my $format = $template->get_format("bug/show", scalar $cgi->param('format'), scalar $cgi->param('ctype')); -my @bugs = (); +my @bugs; my %marks; # If the user isn't logged in, we use data from the shadow DB. If he plans @@ -91,6 +91,8 @@ if ($single) { } } +Bugzilla::Bug->preload(\@bugs); + $vars->{'bugs'} = \@bugs; $vars->{'marks'} = \%marks; |