Академический Документы
Профессиональный Документы
Культура Документы
com/database/articles/say-yes-
to-no-primary-index-no-pi-tables
The purpose of the new Teradata 13.0 feature that allows you
to create tables with no primary index is improved performance
of FastLoad and Teradata Parallel Data Pump Array INSERT data
loading operations.
The syntax for the CREATE TABLE statement has been changed
to permit user data tables to be created without a primary
index. Such tables are referred to as NoPI (No Primary Index)
Tables. A NoPI table can be created in several different ways:
The rules and limitations for NoPI tables are the same as those
for primary-indexed tables with the following exceptions:
• Fallback
• Secondary indexes
• Join indexes
• UNIQUE column constraints
• CHECK constraints
• PRIMARY KEY and FOREIGN KEY constraints
• Triggers
• BLOB and CLOB columns.
You can define any of the following table types as NoPI tables:
• Queue tables
• Error tables
• Global temporary trace tables6
After a NoPI staging table has been populated, you should run
one of the following types of DML request to move the NoPI
staging table source rows to a primary-indexed target table:
• INSERT … SELECT
• MERGE
• UPDATE … FROM
For example, you can populate data into a NoPI table via single-
statement INSERT or multi-statement INSERT. The latter can be
done with TPump Array INSERT which is more efficient and also
an alternative to FastLoad for staging a table.
• DELETE
• INSERT
• SELECT
Feature Impact