知识卡片
压缩块通过偏移表定位
各块独立压缩后大小不同,直接拼接能省空间,但不能用逻辑页号乘固定块大小定位。刷盘或压实写数据时额外记录未压缩地址到物理偏移及长度的映射。读取先查询映射,再读相应压缩区间并解压到缓存。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 7. Log-Structured Storage Disk Access · 查看原书依据
To make compressed pages addressable, we need an indirection layer which stores offsets and sizes of compressed pages. Figure 7-10 shows the mapping between compressed and uncompressed blocks.
参考来源
- 位置:《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#idm46104531483224,段 218)
- 结论依据:第 216–220 段说明压缩寻址和读写顺序。
- 原始内容:To make compressed pages addressable, we need an indirection layer which stores offsets and sizes of compressed pages. Figure 7-10 shows the mapping between compressed and uncompressed blocks.