summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-04-10 18:28:57 +0200
committerDylan William Hardison <dylan@hardison.net>2017-04-10 18:28:57 +0200
commit4f9310f31d68fad232e84d6c80481fd5d060bdd8 (patch)
treeda761d2b09ddd3f194899afc5cf52002d8b2492e /Bugzilla
parent88a5f1111b85d8a1dd17cabb7f90b019a27f8464 (diff)
downloadbugzilla-4f9310f31d68fad232e84d6c80481fd5d060bdd8.tar.gz
bugzilla-4f9310f31d68fad232e84d6c80481fd5d060bdd8.tar.xz
Bug 1355134 - Bugzilla::Bug->groups(): use fetchall_arrayref() for increased performance
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index cba973863..e7ab3d4a7 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -3973,8 +3973,10 @@ sub groups {
$sth->execute($self->{'bug_id'},
$self->{'product_id'});
- while (my ($groupid, $name, $description, $ison, $ingroup, $isactive,
- $membercontrol, $othercontrol) = $sth->fetchrow_array()) {
+ my $rows = $sth->fetchall_arrayref();
+ foreach my $row (@$rows) {
+ my ($groupid, $name, $description, $ison, $ingroup, $isactive,
+ $membercontrol, $othercontrol) = @$row;
$membercontrol ||= 0;