知识卡片
NoSQL灵活性仍有模型责任
无固定表结构能减少部分部署时的模式迁移,但数据语义、读写兼容和访问模式仍须设计。DynamoDB示例用租户标识作分区键、业务标识作排序键,也可每租户一表;选择需结合实际键分布、表数量及操作管理成本。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 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.