Analyzing Index Information with SAPDBA
Use
You can use SAPDBA for Informix to comprehensively analyze information about a single index. If you want to look at information on more than one index, see
Analyzing Indexes by Fill Level, Leaves, and Levels with SAPDBA.Prerequisites
Procedure
SAPDBA displays the report.

Sometimes SAPDBA offers to
The entries on the report have the following meaning:
Entry |
Meaning |
table name |
Shows which table the index relates to |
dbspace |
Shows where the index is logically stored (an index can be stored in a separate dbspace from its associated table with Informix version 7.1 or later). If fragmented (Informix version 7.1 or later), an index is stored in a number of different dbspaces instead of in one single dbspace. |
index type |
Shows how the index was created:
Two rows can have the same value for the indexed column(s).
Two or more rows can have the same value for the indexed column(s). |
fragmentation |
Shows whether the index is fragmented or not. With indexes, the fragmentation strategy can be either of the following:
The index follows the model of the associated table. This means that the fragmentation strategy of the table must be expression-based rather than round robin since an index cannot be set up as round robin
The index has been set up with its own specific expression, independent of its associated table.
The index resides in a separate storage area (that is, in a separate tablespace) from its associated table. |
index levels |
Shows how many levels the index has, indicating how large the index is |
index leaves |
Shows how many leaves the index has, indicating how large the index is |
index size |
Shows approximately how large the index is, in kilobytes. You see one of the following:
This means that the figure is given with a confidence level of plus or minus a certain amount. The confidence level in this example is +/- 5% because the table is relatively large: other confidence levels which you might see with smaller tables are +/- 10% or +/- 30%.
In this case, you also see dbspace: fragmented. For fragmented indexes (Informix version 7.1 or later), the index size is approximate because The index is not necessarily completely full with data. See index fill level below for how full the index is. |
index fill level |
Shows approximately how full the index is. Note that duplicate (that is, non-unique) indexes appear with a hyphen in this field, because it would take too long for SAPDBA to derive a fill level. |
Result
You now have a better picture of the storage situation for the index in question. If you want to change the storage parameters on the index, choose
Reorganizing a Single Index with SADPBA.
See also:
Informix documentation