Collecting Statistics - Teradata Studio

Teradata Studio IDE Plug-in User Guide

Product
Teradata Studio
Release Number
15.12
Published
August 2016
Language
English (United States)
Last Update
2018-05-03
dita:mapPath
pts1468860020550.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-2043
lifecycle
previous
Product Category
Teradata Tools and Utilities

Collecting statistics on columns and indexes provides the Optimizer with data demographic information it uses to generate efficient query plans that execute as quickly as possible.

  1. Display the Query Development perspective.
  2. In the Data Source Explorer, select the table columns and indexes for which you wish to collect statistics. You can select more than one column and index in more than one table by holding the Ctrl or Shift key while you click.
  3. Right-click a selected column or index, and click Teradata > Statistics > Collect. The Statistics Collection view opens, listing the columns and indexes you selected.
  4. [Optional] Select one or more of the items in the Statistics Collection Objects list and click Remove to prevent statistics from being collected on those objects. The items are removed from the Statistics Collection list.
  5. [Optional] To create a multi-column statistic object, select one or more columns in the Statistics Collection Objectslist and click Add Multi-Column. A multi-column entry for the selected columns is added to the list.
  6. Click Collect. The Collect Statistics wizard opens.
  7. [Optional] Click Options>> to expand the table to display statistic collection options and specify the options you want for each object. Tip: Hover your mouse over the Options cells for more information on each option.
  8. Do one of the following:
    • Click Next to inspect the SQL that will be issued to the connected database to start statistics collection.
    • Click Finish to collect the statistics.