mysql - Query takes long time on 'statistics' state -


one of query takes long time(more 300 seconds) executing simple query. , fails in statistics state.

it happens while concurrent execution of same query.

"select 1 <table_name> id = <value> update"

even, have 'optimizer_search_depth' config 0 , buffer size has 14gb.

select .... update sets read lock on rows returns until transaction done, therefor when call same query multiple times @ same time, other ones have wait locks released

i guess using innodb engine table?

please see innodb-locking-reads further information on locking "for update"


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -