Get the App
SLTechnology News&Howtos  ›  Database  › 

What does the mysql transaction isolation level mean?

Shulou Source: shulou.com Published: 2022-06-01 01:52:16 10月31日 Update

This article mainly introduces the meaning of mysql transaction isolation level, which has certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

There are four levels of database isolation, as follows:

1. Uncommitted reads (Read Uncommitted): dirty reads are allowed, that is, data modified by uncommitted transactions in other sessions may be read

2. Read Committed: only the data that has been submitted can be read. Most databases, such as Oracle, default to this level (do not repeat)

3. Repeated Read: repeatable. All queries within the same transaction are consistent at the beginning of the transaction, the default level of InnoDB. In the SQL standard, this isolation level eliminates unrepeatable reads, but there are phantom reads, but innoDB solves phantom reads

4. Serial read (Serializable): fully serialized read, each read needs to acquire a table-level shared lock, and reads and writes will block each other.

Thank you for reading this article carefully. I hope it will be helpful for everyone to share the meaning of mysql transaction isolation level. At the same time, I also hope you can support us, pay attention to the industry information channel, and find out if you have any problems. Detailed solutions are waiting for you to learn!

Tags: Level transaction isolation data article meaning database consistency that is value content at the same time illusion method moment friends standards editing industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Apple NVidia Redmi Docker