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

Teradata Vantage™ - SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Release Date
January 2021
Content Type
Programming Reference
Publication ID
B035-1146-175K
Language
English (United States)

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.