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

Multi Tenancy - Multiple databases #1127

Open
ajordanb opened this issue Feb 17, 2025 · 0 comments
Open

Multi Tenancy - Multiple databases #1127

ajordanb opened this issue Feb 17, 2025 · 0 comments

Comments

@ajordanb
Copy link

Discussed in #400

Originally posted by ph55 November 2, 2022
Hi,

Does beanie supports working with multiple databases ?
I see that following example working, but is it considered "good practice" ?

        await init_beanie(database=client.db_one, document_models=[DbOneModelX, DbOneModelY])
        await init_beanie(database=client.db_two, document_models=[DbTwoModelX])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant