From b6d1cc32f75d47437e382caccfccc5b2d98af765 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Mon, 3 Jan 2011 18:09:42 -0800 Subject: Bug 595410: Make it faster to display a bug that has a lot of dependencies. r=LpSolit, a=LpSolit --- show_bug.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'show_bug.cgi') 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; -- cgit v1.2.1