Teradata Statistics Collection for Improved Query Performance

 

Teradata Collect Statistics – The Decision

Assuming that all Teradata physical data model and table design issues have been resolved, it is expected that your tables can be regularly utilized.

Inform Teradata of a table’s expected properties before executing an SQL statement, with a clear directive to utilize the information. Teradata can more accurately estimate the path through a query by doing so.

Statistics are a potent and costless tool for accomplishing this.

 

The Scope of the Teradata Statistics Collection

Statistics can be collected on a single column or a combination of columns.

The table’s physical design influences what you gather; otherwise, it should be based on how it is utilized.

Always include the following as initial collection choices:

  • on the dummy column PARTITION, irrespective of whether your table is partitioned or not
  • on the Primary Index columns (in combination)
  • on the Secondary Index columns (in combination)
  • on the Columns used for partitioning

The second usage-driven set of collect options consists of:

  • Join columns: columns typically used to join the table to others.
  • WHERE condition columns: columns frequently used to select data subsets from the table

Based on our experience, certain attributes should be excluded from the collection unless there is compelling evidence to include them.

  • time and date columns in table landscapes of daily changes
  • Code, type, or flag columns hardly used in follow-up queries

Related Services

⚡ Need Help Optimizing Your Data Platform?

We cut data platform costs by 30–60% without hardware changes. 25+ years of hands-on tuning experience.

Explore Our Services →

📋 Considering a Move From Teradata?

Get a personalized migration roadmap in 2 minutes. We have migrated billions of rows from Teradata to Snowflake, Databricks, and more.

Free Migration Assessment →

📊 Data Platform Migration Survey

Help us map where the industry is heading. Results are public — see what others chose.

1. What is your current data platform?

2. Where are you migrating to (or evaluating)?

Migrating FROM
Migrating TO

Thanks for voting! Share this with your network.

Follow me on LinkedIn for daily insights on data warehousing and platform migrations.

Stay Ahead in Data Warehousing

Get expert insights on Teradata, Snowflake, BigQuery, Databricks, Microsoft Fabric, and modern data architecture — delivered to your inbox.

Leave a Comment

DWHPro

Expert network for enterprise data platforms. Senior consultants, project teams built for your challenge — across Teradata, Snowflake, Databricks, and more.

📍Vienna, Austria & Jacksonville, Florida

Quick Links
Services Team Teradata Book Blog Contact Us
Connect
LinkedIn → [email protected]
Newsletter

Join 4,000+ data professionals.
Weekly insights on Teradata, Snowflake & data architecture.