知识卡片

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

NoSQL灵活性仍有模型责任

理解等级:中级

无固定表结构能减少部分部署时的模式迁移,但数据语义、读写兼容和访问模式仍须设计。DynamoDB示例用租户标识作分区键、业务标识作排序键,也可每租户一表;选择需结合实际键分布、表数量及操作管理成本。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Data Partitioning · 查看原书依据

      improving performance when accessing data for individual tenants. The EmployeeId was the primary key before we introduced tenancy into these tables. It would now be treated as a sort key within DynamoDB.

    参考来源

    - 位置:《Building Multi-Tenant SaaS Architectures》第08章《Data Partitioning》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Multi-Tenant SaaS Architectures/_epub-src/OEBPS/ch08.html) - 结论依据:原文具体说明无固定表结构能减少部分部署时的模式迁移,但数据语义、读写兼容和访问模式仍须设计;本卡据此归纳机制及适用边界。 - 原始内容:improving performance when accessing data for individual tenants. The EmployeeId was the primary key before we introduced tenancy into these tables. It would now be treated as a sort key within DynamoDB.