16.20 - Maximum Number of Indexes - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Detailed Topics

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1184-162K
Language
English (United States)

Up to 32 secondary indexes can be defined for one CREATE INDEX statement. Also, up to 32 secondary, hash, and join indexes can be defined for one table. Each multicolumn NUSI created with an ORDER BY clause counts as two consecutive indexes in this calculation (see Why Consecutive Indexes Are Important For Value-Ordered NUSIs).

Permitting all secondary index operations for one table to be performed at the same time allows the action to be treated as a single transaction; that is, all of the indexes are created, or none of them are created. You can define up to 64 columns for each secondary index you create.

You can also create secondary indexes on user data base tables and join indexes as part of the CREATE TABLE and CREATE JOIN INDEX statements, respectively. See CREATE TABLE and CREATE JOIN INDEX for details.