summaryrefslogtreecommitdiffstats
path: root/extensions/MyDashboard/lib
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-02-27 15:55:50 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-02-27 15:55:50 +0100
commit0c6d95615195a455b9c4bfc0242a7690f5a881ab (patch)
tree281e7a8d7a802fdf0c88de8dd7e9d14b7ba44dec /extensions/MyDashboard/lib
parentd388c8203d3fb1f2f97569dd9dbdffcd5acc8aa2 (diff)
downloadbugzilla-0c6d95615195a455b9c4bfc0242a7690f5a881ab.tar.gz
bugzilla-0c6d95615195a455b9c4bfc0242a7690f5a881ab.tar.xz
Bug 836067 - backport bug 819432 to BMO 4.2 to improve search performance
Diffstat (limited to 'extensions/MyDashboard/lib')
-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 47778336f..1dc0ecf5a 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;