n-Way Join Optimization - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530

An n-Way Join is a star join that can join a large table with multiple small tables in a single join step. An n-way join is especially useful for star schema query optimization when the fact table is a large columnar table and the dimension tables are small tables that are not joined to each other. Each small dimension table must also have a filtering condition. Unlike LT/ST optimization, n-way optimization can join the dimension tables directly to the fact table in a single step, without first joining the dimension tables.

n-way join optimization can significantly reduce CPU and spool consumption for star schema databases where the fact table is a columnar table.

For an example of n-way join optimization, see n-Way Join Example.