Commit 83cdee1c authored by bbaetz%acm.org's avatar bbaetz%acm.org

Bug 226284 - slow queries for creation_ts

r,a=justdave
parent a823f15b
......@@ -255,7 +255,6 @@ sub init {
push(@wherepart, "bugs.delta_ts >= $sql_chfrom") if ($sql_chfrom);
push(@wherepart, "bugs.delta_ts <= $sql_chto") if ($sql_chto);
} else {
push(@supptables, "bugs_activity actcheck");
my $sql_bugschanged = '';
my @list;
foreach my $f (@chfield) {
......@@ -269,6 +268,7 @@ sub init {
}
}
if(@list) {
push(@supptables, "bugs_activity actcheck");
$sql_bugschanged .= ' OR ' if($sql_bugschanged ne '');
$sql_bugschanged .= "(actcheck.bug_id = bugs.bug_id AND " .
"(" . join(' OR ', @list) . ")";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment