知识卡片

普通读书笔记卡 · 2931.e.2.b.3.a.1

共享关系表保留租户键

理解等级:中级

共享关系表需要租户标识参与数据归属和访问条件,并据查询模式设计适当索引。原业务ID仍需在租户作用域内正确定位;本书示意的主次键表述不是可直接执行的DDL,不能把会重复出现的TenantId单独当作所有行的唯一主键。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Data Partitioning · 查看原书依据

      simply taking your existing database design and introducing a tenant identifier to associate the items in a table with a specific tenant. The end result, shown in Figure 8-3, is exactly what you would expect.

    参考来源

    - 位置:《Building Multi-Tenant SaaS Architectures》第08章《Data Partitioning》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Multi-Tenant SaaS Architectures/_epub-src/OEBPS/ch08.html) - 结论依据:原文具体说明共享关系表需要租户标识参与数据归属和访问条件,并据查询模式设计适当索引;本卡据此归纳机制及适用边界。 - 原始内容:simply taking your existing database design and introducing a tenant identifier to associate the items in a table with a specific tenant. The end result, shown in Figure 8-3, is exactly what you would expect.