问题
Based on comments in https://www.jooq.org/doc/3.6/manual/sql-execution/transaction-management/ changing isolation level doesn't seems possible with Jooq yet. However it is not clear what is the isolation level Jooq is setting, hence my question: what is the isolation level that Jooq is using?
Especially, it looks like I am experiencing dirty reads, while I need the transaction to prevent that. Can someone confirm that dirty reads are prevented by Jooq transactions?
Note: Using Jooq with Mysql. The DB is an AWS Aurora instance.
回答1:
jOOQ 3.9 doesn't support managing transaction isolation levels yet. The relevant feature request to add support for this is #4836.
You will need to configure your JDBC connection directly, or indirectly via your connection pool / data source.
来源:https://stackoverflow.com/questions/42577945/what-is-jooq-transaction-isolation-level-can-dirty-read-happen