Replies: 1 comment
-
This discussion was continued at issue #679. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
In our Spring Boot application we use schema-based multi tenancy from hibernate. When activating the readWriteSplitting plugin, the connection to the read-instance doesn't get the correct schema set.
Our setup:
We instantiate two
TenantBasedConnectionProvider
, each with a differentschema
:And here the correct
TenantBasedConnectionProvider
is selected, depending on which schema should be used for the current request.The problem is that
connection.setSchema(schema);
is only executed for the write-instance. Therefore, when the aws wrapper uses the read-instance, thepublic
schema is used, which is not correct.Thank you for any tips on how to solve this!
Beta Was this translation helpful? Give feedback.
All reactions