Designing indexes for performance
Indexes can provide efficient data access in many situations, and Db2 uses them for other purposes. However, certain costs are also associated with creating and maintaining indexes, and you must consider these costs in your database design.
About this task
Indexes can provide efficient access to data through index access, data clustering, and ordering retrieved data without a sort operation. Db2 also uses indexes for other purposes, such as to enforce uniqueness the uniqueness of column values, as in the case of parent keys, and to partition tables.
However, before you begin to create indexes, you must carefully consider their costs. You might be able to eliminate indexes that are no longer necessary or change the characteristics of an index to reduce disk usage.
Dropping unneeded indexes also improves performance because of savings in index maintenance.
Procedure
When designing or evaluating indexes:
Can your indexes take
advantage of fast index traversal?