- ISOLATION_DEFAULT (Spring)
This is a PlatformTransactionManager Default isolation level, using Default Database transaction level. The other 4 are correspond to JDBC isolation level - ISOLATION_READ_UNCOMMITTED
Lowest isolation level. Allow other transaction to see the data from this transaction. This level can cause dirty read, non-repeatable read, and illusion read - ISOLATION_READ_COMMITTED (normally used)
Promise other transaction can read data until this transaction committed. - ISOLATION_REPEATABLE_READ
Prevent dirty read, non-repeatable read. But can illusion read. - ISOLATION_SERIALIZABLE
This is most expensive level, but most reliable. It promise Sequence. Prevent dirty read, non-repeatable read, and illusion read
I'm a software engineer, interested learning the best technologies, and contribute to the industry.
Wednesday, April 27, 2016
Spring Transaction Isolation Level
Spring Transaction Isolation Level
The standard levels are 2,3,4,5, the higher level, the poorer concurrency/effi
Labels:
Hibernate,
Spring,
Spring AOP,
Transaction
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment