Assumption
when computing the performance of a hash index
I.e.:
reading
the block database addresses
in the directory file entry
requires no disk access
Example: the performance of a hash index
Example: the performance of a hash index
Example: the performance of a hash index
Example: the performance of a hash index
Example: the performance of a hash index
Total:
2 disk accesses
Factor that
determines the performance of
a hash index
Best case performance using hash index
Hash index versus
ordered index (B+-tree)
Hash function produces
psuedo random numbers that
do not preserve
ordering:
if k1 <
k2, there is
no guarantee that
Hash(k1) <
Hash(k2)
Hash index versus
ordered index (B+-tree)
Ordered index can
support
ordered searches (queries):
Problem with a hash index
Problem with a hash index
❮
❯