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
Post a Comment