mysql - Update and select count at the same time taken too much time -


i have mysql statement:

update student_performance_cache spc set badges = (select count(ub.mb_no) user_badges ub ub.mb_no=spc.student_id) 

i got problems query taken time when data become larger. how can improve mysql statement , make faster?


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -