Craig Kerstiens:为多租户设计您的 Postgres 数据库
If you're building a B2B app chances are it's multi-tenant, meaning one customer data is separated and doesn't intermingle with other customer data. When building the app itself you'll typically...
构建B2B应用程序时,通常会使用多租户模式,即将客户数据分开存储。在数据库方面,可以选择单独的数据库或使用模式。Citus是一个扩展程序,可以透明地将Postgres的分片应用到应用程序中。Citus还提供了一些特殊功能,如citus_stat_statements,用于查看执行哪些查询的租户。支持基于模式的分片。