MyISAM is a โtable-level lockโ, which means that a table can only process one request at a time. So, as @Drazisil said, you have several options: optimize your query to reduce the lock problem - stop using the plain text function MySQL (which is very poor performance) - split your large query into smaller queries - improve your indexes OR switch to innodb which is "row level locking"
source share