el930692
asked on
Lots of locked state mysql inserts - slow updates and selects
For some reason all the time when on my processes send selects and updates to a mysql table I see a lot of inserts to the same table in the locked sate.
That makes the initial selects and updates very slow like 40 seconds to a minute for every select or update.
How can I fix this?
That makes the initial selects and updates very slow like 40 seconds to a minute for every select or update.
How can I fix this?
ASKER
Can you have mixed table types like MyISAM and InnoDB?
The majority of my tables are MyISAM.
The majority of my tables are MyISAM.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you!
Say your table is called "fubar", here is a simple command to turn it into InnoDB (assuming you have InnoDB configured for your MySQL server):
alter table fubar engine=innodb