知识卡片
惰性迁移读旧写新但要处理冷数据
惰性迁移允许一段时间内读取旧格式和新格式,却只写新格式,使活跃数据随着正常访问逐步更新。结束前还须识别长期未触达的冷数据,否则不能安全移除旧读取路径。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Principles of Software Architecture Modernization》第9章《Code Migrations》(源文件:`_epub-src/OPS/ch09.xhtml`,归一化正文 [29834:33994))
- 结论依据:原文以 Profile ID 格式变化说明同时读取 V1/V2、只写 V2;并指出冷数据需要后续处理。
- 原始内容:So, we would read both patterns but only store pattern V2. Figure 9.18: Read vs write paths Data which is HOT ( Figure 9.18 ) means that it is constantly being read (get/select) and write (insert or update) them eventually all users will be using pattern V2, and now you can decommission all code that handles V1.