Spring Essay-Transaction ISOLATION LEVEL

Source: Internet
Author: User

Spring provides a transaction isolation level of 5:

  1. Isolation_default: Use the default isolation level of the database backend.
  2. Isolation_read_uncommitted: Allows reading of data changes that have not yet been committed. may result in dirty reads, Phantom reads, or non-repeatable reads.
  3. Isolation_read_committed: Allows reading of data that has been committed by a concurrent transaction. Can prevent dirty reading, but the Phantom read or non-repeatable reading still has Ken can happen.
  4. Isolation_repeatable_read: The results of multiple reads of the same field are consistent. Unless the data is modified by the transaction itself, dirty reads and non-repeatable reads can be prevented, but Phantom reads can still occur.
  5. Isolation_serializable: Full compliance with acid isolation level. Ensure that dirty reads, non-repeatable reads, and Phantom reads are blocked. This is the slowest transaction isolation level because it is typically implemented by fully locking transaction-related database tables.

Spring Essay-Transaction ISOLATION LEVEL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.