MySQL-Update table takes so long -


i have talbe ~110k rows , 20 columns , no indexes. wrote query update 9 columns of table join table has many indexes. , query took forever run. dont know why. here query:

update tonghop join testdone b  on a.stt = b.stt  set a.source = b.source, a.pid=b.pid, a.tenbenhnhan = b.fullname,  a.orderdoctor=b.orderdoctor, a.specialty = b.specialty, a.rdate = b.rdate,  a.icd_code = b.icd_code, a.servicegroup = b.servicegroup; 

really appreciate if

the query executing without clause means going executed on 110k records, , join column "stt" must indexed on both tables in order achieve better performance.

you should add index on column "stt".


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -