Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring framework, @Transactional(isolation = Isolation.DEFAULT)

From the documentation: Isolation.DEFAULT

Use the default isolation level of the underlying datastore.

for other isolation levels we can read their limitations in wiki, but what about DEFAULT? How does it actually behave?

like image 251
xrabbit Avatar asked Mar 20 '23 06:03

xrabbit


1 Answers

DEFAULT means: don't set any isolation level explicitely, and thus use the isolation level that the database uses by default.

So read the documentation of your database and driver, and see which one it uses by default. Most of the time, it's READ_COMMITTED. But some databases might have another default value.

like image 147
JB Nizet Avatar answered Apr 26 '23 01:04

JB Nizet