Commit 5a68fdb4 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 818007: Searching by commenter is slow

r=dkl a=LpSolit
parent d481dc8b
......@@ -2281,7 +2281,7 @@ sub _user_nonchanged {
my $table = $first_join->{table};
my $columns = "bug_id";
$columns .= ",isprivate" if @{ $first_join->{extra} };
my $new_table = "SELECT $columns FROM $table AS $as $join_sql";
my $new_table = "SELECT DISTINCT $columns FROM $table AS $as $join_sql";
$first_join->{table} = "($new_table)";
# We always want to LEFT JOIN the generated table.
delete $first_join->{join};
......
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