Managing Multi-Tenant Databases with Shared and Tenant-Specific Schemas in Bytebase #14429
Unanswered
yuvarajsanthakumar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Bytebase Community,
I am currently working on a multi-tenant SaaS product where I use a Database Per Tenant architecture with Azure SQL Databases. Each database contains two internal SQL schemas for logical separation:
common_schema
: Contains tables that are shared across all tenants.tenant_schema
: Contains tables specific to each individual tenant.Use Case:
common_schema
, ensuring consistent deployments across all tenant databases.tenant_schema
for each tenant, allowing tenant-specific changes to be handled independently.Challenges:
One concern I have is how Bytebase's drift detection will behave in this setup. Specifically:
common_schema
andtenant_schema
, will there be issues with drift detection when changes in one schema are detected as "drift" by the other project's drift check?tenant_schema
, could theProject_CommonSchema
detect this as drift when checking the overall database schema, even though the change is outside its intended scope?Questions:
Any insights, guidance, or shared experiences with similar multi-tenant setups and schema management in Bytebase would be greatly appreciated!
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions