Multi-tenancy

Hi All, Does convex support the ability for each user who has signed up to my app to have their own database? I want to have a sign up page where upon completion, a new database would be provisioned. The schema and everything would be the same. Perhaps a new subdomain for each database and user? I see this as a really clean way to protect user data from each other.
3 Replies
Convex Bot
Convex Bot2mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
ballingt
ballingt2mo ago
If you have unusual architecture (e.g. different clients who want passthrough billing?) you could spin up different backends, but I would use a column for userId and put an index on that column.
ian
ian2mo ago
Yeah +1 to Tom: typically multi-tenancy is implemented by segmenting your tables with indexes.

Did you find this page helpful?