Fun MySQL fact of the day: necessarily coarse locks
If, like me, you're curious why, in yesterday's example, InnoDB acquires a next-key lock before and a gap lock after the records it is updating with equality in a secondary index when usingREPEATABLE READ
(what a mouthful!), then today's Fun MySQL fact is for you! I found myself ... read more