[#1600] Allows non-transaction JPA read-only query #541

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
1 participant

Adding new annotation option

@notransaction(readOnly=true)

allows JPA to make query having to explicitly start a transaction at the Controller level, improving performance and scalability.

All existing annotations will behave the same. Defaults readOnly to false so to not regress existing codes.

https://groups.google.com/forum/?fromgroups=#!topic/play-framework/OaQayMak9mU

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