Hi friends, I have joining two tables,There are hundreds of records in table a and there are hundred thousands records in table b.I joined them both inner and left join but it is two slow.My query is:
SELECT
ch.id,
ch.client_client_id,
ch.duration,
ch.start,
ch.isread,
ch.prefix,
ucr.ucr_add_factor,
ucr.ucr_period,
ucr.ucr_cr_prefix
FROM
call_history AS ch
LEFT JOIN tbl_usr_call_rates AS ucr
ON (
ch.prefix=ucr.ucr_cr_prefix
AND ch.client_client_id=ucr.ucr_callshop_id
)
WHERE
ch.isread='0'
How can i increase performance
Thanks for advance...