dbt

Long-Running Model Bottleneck Detection

warning
latencyUpdated Mar 2, 2026

Identifies models with the longest execution times that create bottlenecks in dbt job runs, enabling targeted optimization of the most impactful models.

How to detect:

Monitor individual model execution durations from dbt run logs or Model Timing dashboards. Flag models in the top 1% of durations or those exceeding expected thresholds (e.g., >5 minutes for tables, >30 seconds for views).

Recommended action:

Review the flagged model's SQL complexity, consider switching to incremental materialization if full-refresh, optimize joins and aggregations, or increase warehouse size for compute-bound models. Use compiled SQL in target/compiled to analyze query plans.