What is Jooq Transaction isolation level? Can dirty read happen?

我怕爱的太早我们不能终老 提交于 2019-12-01 11:21:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!