I changed a query from an equal join to a left outer join but then the performance is suddenly 10 times as slow ??
Is this normal or do I miss something ??
old code
new code
I only have a few thousand records but still I have to wait for 30 seconds with the left outer join
Is this normal or do I miss something ??
old code
Code:
$query1="SELECT * FROM ";
$query1=$query1 . "clienttable,contacttable AS co1 WHERE co1.coclid=clid ";
$query1=$query1 . " AND clname like '$alfabetisch%' ";
$query1=$query1 . " order by $o";
new code
Code:
$query1="SELECT * FROM ";
$query1=$query1 . "clienttable left outer join contacttable AS co1 ON co1.coclid=clid WHERE ";
$query1=$query1 . " clname like '$alfabetisch%' ";
$query1=$query1 . " order by $o";
I only have a few thousand records but still I have to wait for 30 seconds with the left outer join