Bug 127200 - query for cc takes long time

r=mattyt, justdave
This commit is contained in:
bbaetz%student.usyd.edu.au 2002-04-04 04:21:56 +00:00
Родитель 2df551b1ef
Коммит 5e0ed0f646
1 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -502,9 +502,12 @@ sub GenerateSQL {
},
"^cc," => sub {
push(@supptables,
("LEFT JOIN cc cc_$chartid ON bugs.bug_id = cc_$chartid.bug_id LEFT JOIN profiles map_cc_$chartid ON cc_$chartid.who = map_cc_$chartid.userid"));
$f = "map_cc_$chartid.login_name";
push(@supptables, "cc cc_$chartid");
push(@wherepart, "bugs.bug_id = cc_$chartid.bug_id");
push(@supptables, "profiles map_cc_$chartid");
push(@wherepart, "cc_$chartid.who = map_cc_$chartid.userid");
$f = "map_cc_$chartid.login_name";
},
"^long_?desc,changedby" => sub {
@ -616,7 +619,7 @@ sub GenerateSQL {
my $attachtable = "attachments_$chartid";
my $statustable = "attachstatuses_${chartid}_$statusid";
push(@supptables, "attachments $attachtable");
my $join = "LEFT JOIN attachstatuses $statustable ON ".
"($attachtable.attach_id = $statustable.attach_id AND " .