diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-03-13 16:40:42 -0800 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-03-13 16:40:42 -0800 |
commit | d34b096c49dd432d52a620bd1425781b45763f20 (patch) | |
tree | 15d080e32ac6f01a463a063fe7cd279692cc1477 /Bugzilla/Bug.pm | |
parent | 217beee45f5ba22aea80c8a61a639b55fe53293c (diff) | |
download | bugs-d34b096c49dd432d52a620bd1425781b45763f20.tar bugs-d34b096c49dd432d52a620bd1425781b45763f20.tar.gz bugs-d34b096c49dd432d52a620bd1425781b45763f20.tar.bz2 bugs-d34b096c49dd432d52a620bd1425781b45763f20.tar.xz bugs-d34b096c49dd432d52a620bd1425781b45763f20.zip |
Bug 552168: Speed up comment display by pre-loading all Bugzilla::User
objects for the comment authors, for the whole list, all at once.
r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r-- | Bugzilla/Bug.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 4a90c1ce7..d435d5442 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -2719,6 +2719,7 @@ sub comments { $comment->{count} = $count++; $comment->{bug} = $self; } + Bugzilla::Comment->preload($self->{'comments'}); } my @comments = @{ $self->{'comments'} }; |