php - MySQL query combining tables runs too slowly -


i usinga combined table query same time , have large database query runs when live php, times out.

here query. can tell me problem query?

select id,userid,name,pic,uid,act  users u, friends f   u.uid=f.friend_one     , f.friend_two='17'     , f.role='fri'  order f.friend_id desc  limit 10 

i have tried on 2 servers , both far slow.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -