DWHPro Insights

SQL Tuning

Optimizing Join and Aggregation with Teradata UNION ALL Views Widely read

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

Teradata 16 introduces a new option for handling sets of rows combined with “UNION ALL” in views and derived tables, reducing resource usage. The optimizer can apply aggregation steps and join operations to each branch of the “UNION ALL” separately, resulting in smaller spool sizes and improved performance.

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

Teradata Join Optimization: Early and Partial GROUP BY Techniques for Decision Support Workload

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

Learn how Teradata applies two effective join optimization methods, Early and Partial GROUP BY, for decision support workloads with lots of aggregations. These transformations reduce resource usage and are widely used in modern databases. Discover how to improve the optimizer’s chance to apply these techniques by collecting statistics on all join and aggregation columns.

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.