Implicit locking of MyISAM tables during transaction
Hi:
I am exclusively using innodb in an application but I needed sequence values for some high insert tables so I am using a separate table with LAST_INSERT_ID() to generate sequences as mentioned in the manual.
I didn't want the sequence table to remain locked while a transaction is going on (as many other threads need the sequence from the same table and same row) so I changed table type to MyISAM.
I was hoping that MyISAM being non-transactional will serve sequence values to all threads concurrently. But to me it appears that when I do a START TRANSACTION the MySQL locks the MyISAM table as well and keeps it locked until the Transaction is released.
Can someone confirm this behavior? Is there a way I can see locks on MyISAM tables?
Syed
Subject
Views
Written By
Posted
Implicit locking of MyISAM tables during transaction
4449
January 29, 2011 07:27AM
2023
January 30, 2011 11:06AM
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.