How to index table to improve performance
1.
2.

Enjoy Optimized DB!
alter table wp_tender_user_cron add unique index(tenderID, userID);sebelum nak add unique pair index ni, kena make sure takde duplicate..
select tenderID, count(*) as bil from wp_tender_user_cron group by tenderID,userIDdelete all duplicate row jika ada.
having bil > 1
order by bil desc;
2.

Enjoy Optimized DB!
Comments
Post a Comment