DWHPro Insights

Insights

327 technical articles on Teradata, Snowflake, Databricks, SQL tuning and data warehouse architecture — written from production experience, not vendor decks.

Teradata Heuristics for Nonindexed Columns

Illustration of a stopwatch dial on an orange paint-splash background

Learn about heuristics in Teradata optimizer and how they estimate the number of selected data rows for nonindexed columns in WHERE condition predicates. This post analyzes several queries and their estimates based on heuristics and provides insights on how to replace heuristic estimations with more accurate ones.

How to Reduce Skew in Teradata Joins Using the RANDOM() Function Popular

Illustration of a stopwatch dial on an orange paint-splash background

Natural skew may hinder join performance, but the PRPD capability in Teradata 14 can alleviate this problem. However, PRPD may not detect all potential applications if skewed values are not evident in the statistics. If your Teradata version is below 14, PRPD is unavailable. To address this, you can use a technique based on the …

Read more

Practical Approach for Teradata SQL Tuning: Finding the Root Cause of Performance Issues Most read

Illustration of a glossy orange database cylinder with data fragments across its surface

To optimize Teradata SQL performance, it is crucial to identify the root cause of any issues. The SQL statement itself is typically not the culprit but rather one or more stages of the execution plan. This article does not cover genuine optimization techniques. Instead, it presents a pragmatic method for query optimization. I have noticed …

Read more

The Teradata NUSI (Nonunique Secondary Index) Popular

Illustration of a stopwatch dial on an orange paint-splash background

A Teradata NUSI offers an alternative access path that may reduce resource use. Distribution hashing in another product, such as Redshift, is not evidence that it implements Teradata-style secondary indexes. Teradata has two types of secondary indexes: the Unique Secondary Index (USI) and the Non-Unique Secondary Index (NUSI). Although they may seem similar, these indexes …

Read more

Protected by Security by CleanTalk