php - retrieving from multiple tables is taking too long time -
hi retrieving multiple tables , displaying result taking long time.
following database code :
"select count(distinct kgbupdate.gsxno) sat kgbupdate right join contactcenter on kgbupdate.ackno=contactcenter.ackno left join customerfeed on contactcenter.callid = customerfeed.callid date(contactcenter.callclose) between '".$start."' , '".$end."' , kgbupdate.gsxno!='' , contactcenter.callstatus = 'close' , customerfeed.overall in ( 1, 2 ) , contactcenter.location='".$location[$i]."' "
what way speed using index
thanks in advance.
try this:
select count(distinct kgbupdate.gsxno) sat kgbupdate right join contactcenter on kgbupdate.ackno=contactcenter.ackno , contactcenter.callstatus = 'close' , contactcenter.location='".$location[$i]."' " left join customerfeed on contactcenter.callid = customerfeed.callid , customerfeed.overall in ( 1, 2 ) date(contactcenter.callclose) between '".$start."' , '".$end."' , kgbupdate.gsxno!=''
Comments
Post a Comment