diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-02-27 15:55:50 +0100 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-02-27 15:55:50 +0100 |
commit | 0c6d95615195a455b9c4bfc0242a7690f5a881ab (patch) | |
tree | 281e7a8d7a802fdf0c88de8dd7e9d14b7ba44dec /report.cgi | |
parent | d388c8203d3fb1f2f97569dd9dbdffcd5acc8aa2 (diff) | |
download | bugzilla-0c6d95615195a455b9c4bfc0242a7690f5a881ab.tar.gz bugzilla-0c6d95615195a455b9c4bfc0242a7690f5a881ab.tar.xz |
Bug 836067 - backport bug 819432 to BMO 4.2 to improve search performance
Diffstat (limited to 'report.cgi')
-rwxr-xr-x | report.cgi | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/report.cgi b/report.cgi index 7bff62be9..decbaeeb2 100755 --- a/report.cgi +++ b/report.cgi @@ -131,13 +131,12 @@ my $search = new Bugzilla::Search( params => scalar $params->Vars, allow_unlimited => 1, ); -my $query = $search->sql; $::SIG{TERM} = 'DEFAULT'; $::SIG{PIPE} = 'DEFAULT'; -my $dbh = Bugzilla->switch_to_shadow_db(); -my $results = $dbh->selectall_arrayref($query); +Bugzilla->switch_to_shadow_db(); +my ($results, $extra_data) = $search->data; # We have a hash of hashes for the data itself, and a hash to hold the # row/col/table names. @@ -224,8 +223,7 @@ if ($width && $formatparam eq "bar") { $vars->{'width'} = $width if $width; $vars->{'height'} = $height if $height; - -$vars->{'query'} = $query; +$vars->{'queries'} = $extra_data; if ($cgi->param('debug') && Bugzilla->params->{debug_group} |