DBMS Chapter 4 Record Organization and Dile Management
DBMS Chapter 4 Record Organization and Dile Management
• This value has a hash or randomizing function applied to it which yields the
address of the disk block where the record is stored.
• For most records, we need only a single-block access to retrieve that record.
Internal Hashing
Whereas,
* With a Directory
** Without a Directory
Overflow (Bucket Splitting)
K h(K)
30 3
45 0
24 6
25 7
36 0
54 0
Index Structure for Files
Types of Single level Ordered Index
A dense index has an index entry for every search key value in the data file.
A sparse (or nondense) index, on the other hand, has index entries for only
some of the search values. A sparse index has fewer entries than the number
of records in the file.
Two basic kinds of indices:
– Ordered indices: search keys are stored in sorted order
– Hash indices: search keys are distributed uniformly across “buckets” using a
“hash function”.
Reading Assignment
Multiple Indexes