TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Multi-tenancy implementation with Postgres: It's simpler than you imagine

4 点作者 carlual8 个月前

1 comment

magicalhippo8 个月前
Another option that at least should be mentioned I guess, is to share the database but have separate schemas per tenant, configuring the default schema on each user to be the respective tenant schema.<p>Then you don&#x27;t have to remember to always pass the tenant_id to queries, and it allows you to upgrade tenants independently.<p>On the other hand you&#x27;ll end up with a lot of tables, so probably not a good fit if you have very many light tenants.