Skip to content

Change transaction isolation level in the @Transactional annotation #17148

Open

Description

Description

In Spring, I could change the transaction isolation level in their @Transactional annotation (please see https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/transaction/annotation/Transactional.html) however Quarkus is using the Java EE annotation which doesn't permit isolation level configuration.

My app is separated between read only API endpoints (high traffic) and write API endpoints (low traffic), so it would be very useful to have serializable isolation level for the write endpoints and default (read uncommitted) isolation level for read only endpoints.

Implementation ideas

Quarkus already has a TransactionConfiguration annotation to configure transaction timeout, it would be a good idea to add an isolation level configuration there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions