Comparison of Indexing and Hashing



next up previous
Next: Index Definition in Up: Indexing & Hashing Previous: Dynamic Hash Functions

Comparison of Indexing and Hashing

  1. To make a wise choice between the methods seen, database designer must consider the following issues:
  2. The last issue is critical to the choice between indexing and hashing. If most queries are of the form

    then to process this query the system will perform a lookup on an index or hash structure for attribute with value .

  3. For these sorts of queries a hashing scheme is preferable.
  4. However, the worst-case favors indexing:
  5. Index methods are preferable where a range of values is specified in the query, e.g.

    This query finds records with values in the range from to .



next up previous
Next: Index Definition in Up: Indexing & Hashing Previous: Dynamic Hash Functions



Page created and maintained by Osmar R. Zaï ane
Last Update: Wed Nov 15 11:12:38 PST 1995