Choose a Primary Index | Teradata Vantage - Choosing a Primary Index - Advanced SQL Engine - Teradata Database

Database Administration

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
rgu1556127906220.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1093
lifecycle
previous
Product Category
Teradata Vantageâ„¢

Defining the primary index (PI) for a table is the most critical aspect of table design.

The system uses the PI to assign each data row to an Access Module Processor (AMP). A well chosen PI balances the distribution across AMPs and helps optimize the performance of queries that access the table. PIs also enable efficient joins and aggregations.

A query does not use a PI for access unless all columns in the index are in an equality predicate or an IN LIST.

After you identify the PI requirements for a table, you specify the PI as part of the CREATE TABLE statement.