Skip to content

Commit

Permalink
Set MySQL transaction isolation to REPEATABLE READ
Browse files Browse the repository at this point in the history
Tests are passing but no performance improvements seen
on existing repository tests (including ConcurrencyTest).
Maybe more realistic workloads will behave differently.
  • Loading branch information
mederly committed Jan 17, 2018
1 parent cd1e9bf commit f3fccf7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -407,7 +407,7 @@ private void computeDefaultConcurrencyParameters() {
defaultLockForUpdateViaSql = false;
defaultUseReadOnlyTransactions = false; // h2 does not support "SET TRANSACTION READ ONLY" command
} else if (isUsingMySqlCompatible()) {
defaultTransactionIsolation = TransactionIsolation.SERIALIZABLE;
defaultTransactionIsolation = TransactionIsolation.REPEATABLE_READ;
defaultLockForUpdateViaHibernate = false;
defaultLockForUpdateViaSql = true;
defaultUseReadOnlyTransactions = true;
Expand Down

0 comments on commit f3fccf7

Please sign in to comment.