Previous Topic

Next Topic

Book Contents

Book Index

Recommendations for defining Alternative Indexes

The use of Alternative indexes requires additional resources during User file updating, so Alternative indexes should be defined carefully to fit retrieval requests and achieve the desired aim.

Consider the following factors when choosing an index to be used:

The fields that can be used in Alternative indexes are listed in the description of the CTDUFANX utility, and can be divided into three groups:

To decrease the number of retrieved index records, the Alternative Index key should be composed of fields that are frequently specified in the selection criteria.

To make the index more effective, the first fields of the key should be fields of the group 1, if they are fully specified in the filter. The following field should be either a field from group 1, which is specified as prefix or a field from groups 2 or 3, depending on the implementation.

The fields that are specified as masks should be positioned at the end of Alternative Index key.

The order of the fields in the Alternative Index key should be defined so that the search process will have to go through the smallest number of records.

Parent Topic

Using Alternative Index Components