このページは http://www.slideshare.net/billkarwin/innodb-locking-explained-with-stick-figures の内容を掲載しています。
When does InnoDB lock a row? Multiple rows? Why would it lock a gap? How do transactions affect t...
When does InnoDB lock a row? Multiple rows? Why would it lock a gap? How do transactions affect these scenarios? Locking is one of the more opaque features of MySQL, but it’s very important for both developers and DBA’s to understand if they want their applications to work with high performance and concurrency. This is a creative presentation to illustrate the scenarios for locking in InnoDB and make these scenarios easier to visualize. I’ll cover: key locks, table locks, gap locks, shared locks, exclusive locks, intention locks, insert locks, auto-inc locks, and also conditions for deadlocks.