Faloutsos - Pavlo SCS 15-415/615 1
Carnegie Mellon Univ.
- Dept. of Computer Science
15-415/615 – DB Applications
Faloutsos & Pavlo Lecture #10 (R&G ch8) File Organizations and Indexing
CMU SCS 15-415
2 Faloutsos - Pavlo
Overview
- Review
- Index classification
- Cost estimation
Alternative File Organizations
Many alternatives exist, each good for some situations, and not so good in others: – Heap files: Suitable when typical access is a file scan retrieving all records. – Sorted Files: Best for retrieval in some order,
- r for retrieving a `range’ of records.
– Index File Organizations: (ISAM, or B+ trees)
3 Faloutsos - Pavlo
How to find records quickly?
- E.g., student.gpa = ‘3’
Q: On a heap organization, with B blocks, how many disk accesses?
4 Faloutsos - Pavlo