n-Way Join Optimization - Teradata Vantage - Analytics Database

SQL Request and Transaction Processing

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2024-10-04
dita:mapPath
zfm1628111633230.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
evd1472255317510
lifecycle
latest
Product Category
Teradata Vantageā„¢

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.