1. Isolation Level

<aside> 💡 Read committed resolve the dirty read problem

</aside>

<aside> 💡 Repeatable read is implemented by a row lock. It make sure a transaction always read the same data.

</aside>

<aside> 💡 Serializable is implemented by a table lock(low efficiency). It aims to resolve a problem called phantom read.

A phantom read occurs when a transaction retrieves a set of rows twice and new rows are inserted into or removed from that set by another transaction that is committed in between

</aside>

Untitled