Static Hashing
If you specify a search key value, the hash function always calculates the same address. If you want to generate an address that uses a mod 5 hash function, only 5 different values will be generated. The output address of this function is always the same. The number of available buckets always remains constant. Bucket addresses generated with static hashing always remain the same.
For example,
If you use the hash function mod(5) to get the address for customer ID =75, you will always get the same bucket address 0
The bucket address does not change in this scenario.
75 mod 5= 0
66 mod 5 = 1
82 mod 5 = 2
93 mod 5 =3
104 mod 5 = 4
and so on.
Hash File Organization in DBMS
Hashing techniques are used to retrieve specific data. Searching through all index values to reach the desired data becomes very inefficient, in this scenario we may use hashing as an efficient technique for locating desired data directly on disk without using an index structure.
Hash File Configuration is also known as Direct file configuration.
Contact Us