Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for a read-only DataSource in LazyConnectionDataSourceProxy #31785

Closed
jhoeller opened this issue Dec 7, 2023 · 0 comments
Closed

Support for a read-only DataSource in LazyConnectionDataSourceProxy #31785

jhoeller opened this issue Dec 7, 2023 · 0 comments
Assignees
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement
Milestone

Comments

@jhoeller
Copy link
Contributor

jhoeller commented Dec 7, 2023

In the course of addressing #29931 and #21415, it turns out that LazyConnectionDataSourceProxy can easily provide special support for a read-only DataSource in addition to the regular target DataSource, avoiding the overhead of switching the Connection's read-only flag at the beginning and end of every transaction. This can also serve as a replacement for a dedicated routing DataSource based on the read-only status of the transaction, since in many scenarios, lazy connection behavior is very desirable for read-only access as well.

@jhoeller jhoeller added in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement labels Dec 7, 2023
@jhoeller jhoeller added this to the 6.1.2 milestone Dec 7, 2023
@jhoeller jhoeller self-assigned this Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant