知识卡片
归并排序后对账版本
归并提供有序候选,对账才决定用户看见哪一个值。同键记录带时间戳等元数据,按优先级挑出有效版本,旧记录在读取和压实中被遮蔽,墓碑可让输出为空。插入和更新都追加新版本,默认呈现 upsert 语义。
参见 [[最小堆归并有序游标]]。
参见 [[墓碑阻止旧值复活]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 7. Log-Structured Storage LSM Tree Lookups · 查看原书依据
To reconcile data records, we need to understand which one of them takes precedence. Data records hold metadata necessary for this, such as timestamps.
参考来源
- 位置:《Database Internals》Chapter 7. Log-Structured Storage(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch07.html#idm46104531693192,段 116)
- 结论依据:第 112–117 段说明对账与 upsert。
- 原始内容:To reconcile data records, we need to understand which one of them takes precedence. Data records hold metadata necessary for this, such as timestamps.