知识卡片
SSTable索引定位有序数据
SSTable 的数据区按键连续排列,索引区从键到记录偏移,可采用 B 树或哈希等结构。定位范围起点后从有序数据区顺序遍历,压实也可绕开索引直接流读。在顺序写数据时同时收集偏移,才能生成正确索引。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 7. Log-Structured Storage Implementation Details · 查看原书依据
The index component holds keys and data entries (offsets in the data file where the actual data records are located). The data component consists of concatenated key-value pairs.
参考来源
- 位置:《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#sstables,段 171)
- 结论依据:第 169–172 段说明数据区、索引区和顺序构建。
- 原始内容:The index component holds keys and data entries (offsets in the data file where the actual data records are located). The data component consists of concatenated key-value pairs.