知识卡片

结构图卡 · 10295.a.1.a.4.a · 生成模型:未记录

槽页怎样保持引用

理解等级:中级

槽目录保存单元在页内的偏移,记录内容可长可短。外部引用可以用页号加稳定槽号,页内寻址再查槽记录,因而移动记录并更新偏移即可整理空洞。删除时可清空映射并回收数据区。若槽号已经暴露给页外,重排查找顺序也需通过独立顺序表或等效办法保留稳定槽身份。

结构图:

flowchart LR
R[页号与槽号] --> S[槽目录]
S --> A[页内偏移]
A --> C[可移动记录单元]
这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Database Internals》Chapter 3. File Formats(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch03.html#slotted_pages,段 74) - 结论依据:原文把指针与数据区分开,并在本节末说明页外只需认槽 ID。 - 原始内容:We organize the page into a collection of slots or cells and split out pointers and cells in two independent memory regions residing on different sides of the page.