aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2011-01-03 18:09:42 -0800
committerMax Kanat-Alexander <mkanat@bugzilla.org>2011-01-03 18:09:42 -0800
commitb6d1cc32f75d47437e382caccfccc5b2d98af765 (patch)
tree2ceff059de13f820287c0a84f248d55ef5630aff /show_bug.cgi
parentBug 622437: Remove 'colchange_columns' hook from the Example extension (diff)
downloadbugzilla-b6d1cc32f75d47437e382caccfccc5b2d98af765.tar.gz
bugzilla-b6d1cc32f75d47437e382caccfccc5b2d98af765.tar.bz2
bugzilla-b6d1cc32f75d47437e382caccfccc5b2d98af765.zip
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-xshow_bug.cgi4
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;