


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An in-depth exploration of physical data organization in database systems, focusing on disks and the importance of minimizing disk i/o's. Topics include record and block layout, storage hierarchy, and performance tricks for optimizing disk access.
Typology: Slides
1 / 4
This page cannot be seen from the preview
Don't miss anything!



3
4
Registers
Cache
Memory
Disk
Tapes
5
(Source: AlphaSort paper, 1995)
6
Spindle rotation
Platter
Platter Spindle
Platter
Tracks
Arm movement
Disk arm
Disk head
Cylinders
“Moving parts” are slow
Track
Track
Track
Sectors
Higher-density sectors on inner tracks and/or more sectors on outer tracks
A block is a logical unit of transfer consisting of one or more sectors
9
10
11
Keep related things (what are they?) close together: same sector/block → same track → same cylinder → adjacent cylinder
While processing the current block in memory, prefetch the next block from disk (overlap I/O with processing)
Example: “elevator” algorithm
Read/write one entire track at a time
More disk heads working at the same time
12
142 Bart 10 2.3 123 Milhouse 10 3.
456 Ralph 8 2.
857 Lisa 8 4.
142 Bart 10 2.3 123 Milhouse 10 3.1 857 Lisa 8 4. 456 Ralph 8
Cache
When a particular column of a row is brought into the cache, the same column of the next row is brought in together
142 123 857 456
1111
Bart Milhouse Lisa Ralph
10 10 8 8
2.3 3.1 4.3 2.
4 (number of records)
1111
Reorganize after every update (for variable-length records only) and delete to keep fields together
(IS NOT NULL bitmap)
21
Why I/O’s dominate the cost of database operations
Steps in completing a disk access Sequential versus random accesses
Handling variable-length fields Handling NULL Handling modifications
NSM: the traditional layout PAX: a layout that tries to improve cache performance