php - Mysql Update Query increases server load -
i working in dictionary type website, main table all_english_words contains 9 million records. in table id primary key , word column unique key. in word view page fetch record word , put 1 update query increase view count +1 using id condition. problem website hosted in dedicated linux server , avg server load 2.5 3 if remove update query server load drops 0.5 0.8.  problem? there mistake in update query or how optimize or there alternative methods?  update query below
update all_english_words set viewcount=viewcount+1 id=8878151   
 
  
Comments
Post a Comment