Maximum Number of Indexes - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
imq1591724555718.ditamap
dita:ditavalPath
imq1591724555718.ditaval
dita:id
B035-1184
lifecycle
previous
Product Category
Teradata Vantage™

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.