LIST.INDEX |
|
|
The LIST.INDEX command reports details of one or more alternate key indices.
Format
LIST.INDEX filename field(s) {STATISTICS | DETAIL} {LPTR {n}} {NO.PAGE}
LIST.INDEX ALL {LOCAL} {STATISTICS | DETAIL} {LPTR {n}} {NO.PAGE}
where
The first form of the LIST.INDEX command reports information about alternate key indices in the filename for the named field(s). If no field(s) are specified on the command line, the user is prompted to enter the indexed field name.
The second form with the ALL keyword in place of the filename produces a composite report of all files in the account that have alternate key indices. The LOCAL qualifier omits files referenced via Q-pointers.
The basic report appears as below.
Alternate key indices for file ORDERS Number of indices = 1
Index name...... En Tp Nulls SM Fmt NC Field/Expression DATE Y D Yes S R N 17
The columns following the index name show:
1(MCU)
Use of the STATISTICS (short form STATS) keyword extends the report to include statistical information about the index showing the number of index entries (different field values) and the minimum, average and maximum number of records per index entry. A warning message is displayed if over 20% of the index entries are for the null value as this may indicate poor choice of indexed data. If the application does not need to be able to locate the null items, modifying the index to use the NO.NULLS option may improve performance.
Use of the DETAIL keyword shows the statistics and also shows up to 63 characters of each key value and the number of records for that key value.
See also: BUILD.INDEX, CREATE.INDEX, DELETE.INDEX, DISABLE.INDEX, MAKE.INDEX, REBUILD.ALL.INDICES |