Sequence of Events for an Index Analysis - Advanced SQL Engine - Teradata Database

SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
qtb1554762060450.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata Vantage™

The following process indicates the general phases of an index analysis:

  1. The analysis begins when an INITIATE INDEX ANALYSIS request is submitted.
  2. The database query analysis tool analyzes the submitted workload for indexing opportunities.
  3. The index recommendations are written to the IndexRecommendations, IndexColumns, and JoinIndexColumns tables of the specified QCD database.
  4. The recommendations are retrieved for evaluation using a set of SQL SELECT requests defined within a number of macros provided within each QCD.

    For example, the following SELECT request is the core of the Recommendations macro.

         SELECT TableName, DatabaseName, IndexTypeText, SpaceEstimate,             IndexDDL
         FROM IndexRecommendations
         WHERE WorkloadID = :WorkloadID;

    You can find a list of the index recommendation query macros in Teradata Vantage™ - SQL Request and Transaction Processing, B035-1142.