-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Property quarkus.hibernate-orm.multitenant-schema-datasource is apparently pointless #18564
Comments
I found one explanation here: https://github.com/quarkusio/quarkus/pull/8545/files#diff-0ce52774c4cc571f0dd21946d42a8133b5a6e82ef34f93494b969fc94e06e1bc
This doesn't explain why someone would use |
There are no tests involving this configuration property. `quarkus.hibernate-orm.datasource` serves the exact same purpose and is more standardized and better handled (e.g. in Dev UI). See quarkusio#18564
There are no tests involving this configuration property. `quarkus.hibernate-orm.datasource` serves the exact same purpose and is more standardized and better handled (e.g. in Dev UI). See quarkusio#18564
Description
quarkus.hibernate-orm.multitenant-schema-datasource
seems to have the exact same purpose asquarkus.hibernate-orm.datasource
: it sets the (single) datasource to be used for a given persistence unit.The only difference I could see is that
quarkus.hibernate-orm.multitenant-schema-datasource
can only be used in a multi-tenancy scenario. All I can find in the documentation is this example, which isn't clear about what the purpose of the property is exactly:There are apparently no tests involving the property
multitenant-schema-datasource
.Also, judging from the code, unless
multitenant-schema-datasource
is set, the datasource is duplicated for each tenant:However, this difference is not documented, seems buggy (the created datasource is never closed) and I'm not sure what the point of copying the datasource even is?
Implementation ideas
We should either clarify the documentation, or fix the behavior and deprecate the property
multitenant-schema-datasource
for removal.The text was updated successfully, but these errors were encountered: