dbt Analytics Engineering (50 Qs)•Part 3: Enterprise Scale, Performance & CI/CD Pipelines (Senior / Staff)
How do you tune performance for massive dbt DAGs?
senior LevelMost AskedFormsPerformancePipes
In Simple Words:
- Parallel Threads (
--threads 16): Increase thread concurrency so independent branches of the DAG execute concurrently. - Optimize Materializations: Demote rarely queried tables to
ephemeralorviewto eliminate warehouse write I/O. - Partition & Cluster Pruning: Configure warehouse-specific cluster keys directly inside model configs (
cluster_by=['customer_id']).