16.10 - Purpose - Teradata Database

Teradata Database Design

Product
Teradata Database
Release Number
16.10
Release Date
June 2017
Content Type
User Guide
Publication ID
B035-1094-161K
Language
English (United States)

Secondary indexes enhance selection by specifying access paths other than the primary index path. Secondary indexes are also used to facilitate aggregate operations.

If a secondary index covers a query (see Criteria for a definition of covering), then the Optimizer determines that it would be less costly to access the index rows directly rather than using it to access the base table rows the index points to.

Sometimes multiple secondary indexes with low individual selectivity can be overlapped and bit mapped to provide enhanced retrieval when that would decrease the cost of a query (see NUSI Bit Mapping).

To distribute unique secondary index rows, Teradata Database uses the same hash-based AMP distribution scheme used for the base table data.

Nonunique secondary indexes are stored AMP locally to the rows they index and are not hash-distributed.