Skip to main content
Jagdish Kumawat
Founder @ Dewiride
View all authors

READ COMMITTED vs REPEATABLE READ in MySQL

· 7 min read
Jagdish Kumawat
Founder @ Dewiride

Under one isolation level, a transaction reads 50 twice while another session has already saved 40. Under the other, its second read says 40. Neither is a bug, and the right choice depends on what your code does with the number. Here are the two levels running side by side, and what a write does under both.

How Autocommit Works in MySQL

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

You run an UPDATE, and it's saved. You didn't ask for that, and that's autocommit doing its job. It's on by default, and turning it off changes what every later statement does in that session. Here's each setting at work, and the surprise waiting when you close the client.

Fixed: MySQL Connection Stays on SERIALIZABLE After TransactionScope with MySql.Data

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

I used a TransactionScope once, and afterwards a plain query on the same pooled connection reported its isolation level as SERIALIZABLE. The scope's default level is Serializable, the driver sets it for the whole session, and nothing puts it back. Passing the level you want avoids all of it.