Motivation: the
need to
resize a hash index
Initially,
the database has
few (data ) records:
Motivation: the
need to
resize a hash index
Over time,
the database has
grown:
Resulting in
poorer performance
Motivation: the
need to
resize a hash index
Over time,
the database has
grown:
Resulting in
poorer performance
Solution::
increase
the hash bucket size (= dynamic hashing)
How
to increase the
hash bucket/table size
How to
increase the
hash bucket/table size:
increase
the parameter B
What happen when we
change the
bucket size ?
What happen when we
change the
bucket size ?
The old hash function will
not generate
bucket index in the
wider range !!!
What happen when we
change the
bucket size ?
What happen when we
change the
bucket size ?
What happen when we
change the
bucket size ?
What happen when we
change the
bucket size ?
What we need to
do to
fix the
problem when we
change the
bucket size
of a hash table:
What happen when we
change the
bucket size ?
What we need to
do to
fix the
problem when we
change the
bucket size
of a hash table:
Dynamic hashing:
change the
bucket size
without having to re-hash
all keys
The dynamic hashing techniques that we
will discuss
❮
❯