Re: INSERT-only table gets locked randomly (MySQL 5.0)
Hi,
what do you mean when you write "...a php cron job reads data from this table..." and "There are no SELECT..."? How do you read from the table without using select?
The "update" state is set by the INSERT statement after it opened and locked the table. After this it starts a loop over all insert values and writes them into the table. After the loop follow some cleanup operations including commit (which should be irrelevant for MyISAM tables) and binary log handling (but you don't use replication, right?). So I have no idea where the thread is waiting.
BTW, is that state coupled with major CPU time consumption?
It would be great if you could attach a debugger to the running server and look at the stack traces for all the threads to see where that insert waits. Or you kill the server with SIGSEGV and to the same analyze on the core file. This might give some insight, but I can't guarantee anything. :)
Regards
Ingo Strüwing, Senior Software Developer - Storage Engines
MySQL AB, www.mysql.com
Subject
Views
Written By
Posted
3912
June 14, 2006 01:00AM
Re: INSERT-only table gets locked randomly (MySQL 5.0)
1882
June 15, 2006 08:55AM
1680
June 16, 2006 03:24AM
3126
September 06, 2006 12:25AM
1990
October 04, 2006 01:36PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.