summaryrefslogtreecommitdiffstats
path: root/extensions/MyDashboard
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-02-26 21:57:37 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-02-26 21:57:37 +0100
commit5ccff95a61b0c0816fa42da061c298f794daf33d (patch)
tree2b46e295fb29bcd57afd6c8532001290d82ec953 /extensions/MyDashboard
parent8555ab1f12abd53744d0cb4fe9b3d7a925b10194 (diff)
downloadbugzilla-5ccff95a61b0c0816fa42da061c298f794daf33d.tar.gz
bugzilla-5ccff95a61b0c0816fa42da061c298f794daf33d.tar.xz
Bug 836067 - backport bug 819432 to BMO 4.2 to improve search performance
Diffstat (limited to 'extensions/MyDashboard')
-rw-r--r--extensions/MyDashboard/lib/Queries.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/extensions/MyDashboard/lib/Queries.pm b/extensions/MyDashboard/lib/Queries.pm
index e81e7f73f..2ec4c8a74 100644
--- a/extensions/MyDashboard/lib/Queries.pm
+++ b/extensions/MyDashboard/lib/Queries.pm
@@ -145,13 +145,10 @@ sub query_bugs {
params => scalar $params->Vars,
order => [ QUERY_ORDER ]);
- my $query = $search->sql();
- my $sth = $dbh->prepare($query);
- $sth->execute();
- my $rows = $sth->fetchall_arrayref();
+ my $data = $search->data;
my @bugs;
- foreach my $row (@$rows) {
+ foreach my $row (@$data) {
my $bug = {};
foreach my $column (SELECT_COLUMNS) {
$bug->{$column} = shift @$row;