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
-
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