知识卡片
数据文件的三种组织
堆文件按可用空间存放记录,追加成本低,找指定记录通常依赖额外索引。哈希文件按键的哈希定位桶,桶内可以按写入顺序或键顺序组织。索引组织表把完整记录放进按键排序的索引,在树中找到目标即可取得数据,键范围也能顺序扫描。分离的数据文件则需要索引保存文件偏移或桶编号。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 1. Introduction and Overview Data Files and Index Files · 查看原书依据
Data files (sometimes called primary files) can be implemented as index-organized tables (IOT), heap-organized tables (heap files), or hash-organized tables (hashed files).
参考来源
- 位置:《Database Internals》Chapter 1. Introduction and Overview(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch01.html#idm46104533763640,段 97)
- 结论依据:原文列出三类主文件及各自放置规则,并解释索引组织表省去一次文件寻址。
- 原始内容:Data files (sometimes called primary files) can be implemented as index-organized tables (IOT), heap-organized tables (heap files), or hash-organized tables (hashed files).