Introduction to DB2 for z/OS
Previous topic | Next topic | Contents | Glossary | Contact z/OS | PDF


Types of indexes

Introduction to DB2 for z/OS



You can use indexes to improve the performance of data access. The various types of indexes have different features that you should consider when creating a particular type.

Start of changeYou typically determine which type of index you need to define after you define a table.End of change

An index can have many different characteristics. Index characteristics fall into two broad categories: general characteristics that apply to indexes on all tables and specific characteristics that apply to indexes on partitioned tables only. The following table summarizes these categories.

Table 1. Index types for general, partitioned, and universal table spaces
Table or table space type Index type
General (applies to all indexes)
  • Unique indexes
  • Clustering indexes
  • Padded indexes
  • Not padded indexes
  • Start of changeIndex on expressionEnd of change
  • Start of changeXML indexesEnd of change
  • Start of changeCompressed indexesEnd of change
Partitioned
  • Partitioning indexes
  • Start of changeData-partitioned secondary indexesEnd of change
  • Start of changeNon-partitioned secondary indexesEnd of change
  • Start of changeCompressed indexesEnd of change
Start of changeUniversalEnd of change Start of change
  • Partitioning indexes (range-partitioned universal only)
  • Data-partitioned secondary indexes (range-partitioned universal only)
  • Non-partitioned secondary indexes
  • Start of changeCompressed indexesEnd of change
End of change




Copyright IBM Corporation 1990, 2010