Collecting Statistics on NUSIs Defined Using ALL and ORDER BY - 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™

When you use the ALL and ORDER BY keywords in a CREATE INDEX request, you should always collect statistics on the column on which the index is defined. This permits the Optimizer to more accurately compare the cost of using a NUSI-based access path with range or equality conditions on the sort key column.