reproduce select statement blocking in InnoDB
Hi,
I am using MySQL (with InnoDB tables) for a fairly high utilization web application.
I use a master for my modify operations, and replicate out to my web server nodes. The nodes use the db as read-only.
I understand that modify queries will get exclusive row locks and/or index row locks as necessary, and therefore select statements that need to read those rows will block.
I want to make sure I understand exactly what types of statements will block reads on my slave nodes.
I am also sure I have seen this read blocking behaviour, but I cannot reproduce a block on a read. My updates do not use table locks, indeed they do not explicitly set locks of any kind.
Can someone give me an example of a blocked select (without explicitly locking the table of course)?
I am using the default innodb transaction isolation levels (consistent read).
Thanks
Subject
Views
Written By
Posted
reproduce select statement blocking in InnoDB
4152
September 02, 2008 04:35AM
2028
September 02, 2008 06:01AM
2012
September 08, 2008 05:27PM
1901
September 09, 2008 07:46PM
1989
September 22, 2008 11:14AM
1857
October 30, 2008 02:48PM
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.