- Analyze each table you are considering for conversion. Look for static tables with unique keys that are frequently used for single fetch queries.
- Before replacing any existing indexes be sure that they are not used for range queries. Hashing is not used for range queries, so these indexes should not be dropped. Any index used solely for direct lookup can be dropped.
- Estimate the number of rows and average row size and calculate a sufficient hash space size.
- Issue the ALTER ADD organization-clause statement.
- Reorganize the table space specifying AUTOESTSPACE YES. Doing so allows DB2 to automatically estimate the best size for the hash space using real-time statistics.
- REBIND any applications using SQL with equality predicates on the hash key.
Note:This blog post was adapted from the newly published 6th edition of Craig's best-selling book, DB2 Developer's Guide.

