Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Teradata Performance Tuning in Practice
New
Rating: 5.0 out of 5(2 ratings)
41 students

Teradata Performance Tuning in Practice

Read EXPLAIN plans, fix skew, joins and statistics, and tune indexes, DBQL and locking for faster Teradata SQL
Last updated 11/2026
English
English

What you'll learn

  • Explain how Teradata spreads rows across AMPs and why the primary index decides query speed
  • Read an EXPLAIN plan step by step, judge its confidence levels and find the step that costs the most
  • Diagnose spool error 2646 even when most of your spool still looks free
  • Recognise merge, hash, nested, product and sliding-window joins, and know when the optimizer picks each
  • Find and fix skew in tables and joins
  • Collect the right statistics and spot an estimate the optimizer shouldn't trust
  • Choose between PPI, USI, NUSI and join indexes, and design partition ranges that stay cheap to maintain
  • Use DBQL and query bands to find and rank the most expensive queries by CPU, I/O and skew
  • Design tables for speed: SET vs MULTISET, NOT NULL, compression and NoPI staging
  • Understand locks, deadlocks, rollbacks and workload management, and why they slow queries down

Course content

9 sections • 58 lectures • 3h 6m total length
  • Welcome: your roadmap to diagnosing slow Teradata queries1:51

    See how the nine sections connect query plans, row distribution, statistics and measured resource usage. Learn how to work through the explanations, demonstrations and assignments to build a practical tuning method.

  • Shared-nothing architecture: how a query reaches the AMPs4:01

    Follow one SQL request through the parsing engine, BYNET and AMPs. Explain how parallel work depends on row distribution, and use three diagnostic questions to start investigating a slow query.

  • Primary indexes: choose row distribution and access together4:09

    Trace a primary index value through row hashing, hash buckets and AMP placement. Compare unique and non-unique primary indexes, then weigh distribution, access and stability when choosing a primary index.

  • Skew: diagnose the AMP that holds up the query3:11

    Explain why a busy AMP can delay an entire query step. Recognise skew from primary indexes and join columns, use skew-factor and value-count queries to investigate it, and understand why MULTISET alone does not fix distribution.

  • Demo: measure AMP skew behind similar query runtimes1:53

    Compare the same sales rows under two primary indexes on a four-AMP lab system. Use row distribution and DBQL CPU figures to reveal skew that similar elapsed times can hide.

  • Quiz: How Teradata executes a query
  • Spot the skewed table

Requirements

  • Working SQL knowledge: SELECT, JOIN and GROUP BY
  • Access to a Teradata or Vantage system helps but is not required

Description

Find out why a Teradata query is slow—and choose a fix you can explain.

A query runs out of spool while most spool is still free. One AMP does most of the work. An EXPLAIN plan estimates far more rows than a query returns. This course shows you how to investigate problems like these using execution plans, SQL examples and evidence from a real Teradata system.

Teradata Performance Tuning in Practice is for SQL developers, ETL engineers, data engineers and DBAs who want a repeatable way to diagnose slow queries. You will learn to read the plan, identify the likely cause, choose a targeted change and check what happened when the query ran.

What you will learn to do

  • Read an EXPLAIN plan step by step, identify expensive data movement and distinguish optimizer estimates from measured results.

  • Recognise table and join skew, understand why one busy AMP can hold up a query, and evaluate ways to improve row distribution.

  • Diagnose error 2646 and explain why available total spool does not guarantee enough spool on every AMP.

  • Choose useful statistics and compare estimated row counts with actual counts.

  • Assess join strategies, SQL rewrites, indexes and partitioning in the context of the query you need to improve.

  • Use DBQL to find costly queries and investigate CPU, I/O and skew, then understand how locks and workload limits affect execution.

See the behaviour, then practise the diagnosis

The course combines short explanations, diagrams and SQL with nine practical demonstrations and nine assignments—one of each per section. Demonstrations include skew on a real system, reading an EXPLAIN plan, a forgotten join condition, statistics before and after collection, partition elimination and a writer blocking a reader.

Each section also includes a quiz. A timed final exam contains 36 questions, four per section, to help you identify which topics to revisit.

Nine sections build a complete tuning workflow

  • Query execution: shared-nothing parallelism, AMPs, hashing, primary indexes and skew.

  • Reading the plan: EXPLAIN steps, access paths, confidence levels and spool error 2646.

  • Join strategies: merge, hash, nested and product joins, sliding-window merge joins, and skewed joins.

  • Statistics: histograms, estimation errors and practical statistics collection.

  • Rewrites and method: SQL patterns and a repeatable approach to finding the root cause.

  • Indexes and partitioning: partition elimination, USI, NUSI and join indexes.

  • Finding expensive queries: DBQL, CPU and I/O costs, skew and query bands.

  • Physical design: SET and MULTISET tables, data types, compression and NoPI staging.

  • Concurrency: locks, deadlocks, transactions, AWTs, throttles and TASM.

What you need before starting

You should already be comfortable with SQL, including SELECT, JOIN and GROUP BY. Access to a Teradata or Vantage system helps you try the examples yourself, but is not required to follow the explanations and recorded demonstrations. This is an intermediate performance-tuning course.

About the material

The course is based on Roland Wenzlofsky’s DWHPro articles and the book Teradata Query Performance Tuning: The DWHPro Guide. The narration is AI-generated; the technical material comes from the instructor’s articles and book.

VantageCloud Lake scope

On VantageCloud Lake, this course applies to tables in block storage. Object File System tables have no primary index by default, and no row partitioning, secondary indexes or multi-table join indexes. Viewpoint on Lake monitors the primary cluster only.

Start with the free preview lectures to see how the course explains query execution, skew and EXPLAIN plans.

Who this course is for:

  • SQL developers and ETL engineers working on Teradata or Vantage
  • Data engineers who inherited slow Teradata workloads
  • DBAs who need to explain why a query is slow
  • Migration teams who want to understand what made Teradata fast
  • Teradata professionals preparing for a performance-focused interview