Database Management Systems, R. Ramakrishnan and J. Gehrke 1
Database Management Systems, R. Ramakrishnan and J. Gehrke 1
Database Management Systems, R. Ramakrishnan and J. Gehrke 1
Gehrke
Storing Data: Disks and Files
BUFFER POOL
disk page
free frame
MAIN MEMORY
F1 F2 F3 F4
L1 L2 L3 L4
$ $ $ $
Fields Delimited by Special Symbols
F1 F2 F3 F4
Slot M
N 1 . . . 0 1 1M
number M ... 3 2 1 number
PACKED of records UNPACKED, BITMAP of slots
Rid = (i,2)
Rid = (i,1)
20 16 24 N Pointer
N ... 2 1 # slots to start
of free
space
SLOT DIRECTORY
Can move records on page without changing rid;
so, attractive for fixed-length records too.
Database Management Systems, R. Ramakrishnan and J. Gehrke 2
Files of Records
Data
DIRECTORY Page N