-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Provides multi-tenancy capabilities for MongoDB with Panache #7431
Provides multi-tenancy capabilities for MongoDB with Panache #7431
Conversation
@geoand with your changes on the MongoDB client build my multi-tenancy PR is now working 🎉 But I wonder if I can improve it:
|
Glad to hear it!
Essentially yes, this is why I don't like the
I don't think we need to go to those lengths. Retrieving from Arc should be just fine :) |
9f1b04b
to
88a7725
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code LGTM, but I'm confused as to the relation between clients and databases.
IMO if you have two databases you get two clients: one for each DB, and they should not be addressed by client name but by DB name. But perhaps this is different in Mongo as it is in ORM?
@FroMage In MongoDB you can have multiple databases by MongoDB instance, all would be accessible using the same client (it's closest to the schema of a JDBC database than to a database). For me, with JDBC, you create a connection by database, not to a database engine, so it's different. You can have multiple database in a single Postgres server but you will need to create separate connections for them ... That's why we choose the name Maybe the documentation can be improved a bit, |
OK, in that case, IF it's true that mongo users are fine understanding that a mongo DB is an SQL schema, and a mongo client is a JDBC connection, then sure, keep that terminology. Not sure it's worth documenting it for SQL/JDBC people like me, if it's such common knowledge for mongo users. After all, this extension assumes you have some knowledge of mongo :) |
Maybe we can ask @geoand if the current wordings are clear enought, more eyes, better naming ;)
Yes, but as we aim to provides very easy to use API, just a little knowledge should be enought ;) |
I think this is great information to have in the documentation. I don't think this is exactly common knowledge for most people. Perhaps a follow up PR? |
You now it will imply as much work for you to correct it than for me to write it ;) I'll add it to my TODO list ... |
And then you spotting the missing words in my corrections 😆 |
Team works ! |
@geoand this PR is validated. Can you merge it ? |
Sure, I forgot about it! Thanks a lot! |
Fixes #5183
Documentation is missing, waiting for #6923 to be merged before updating the guide