Overcoming Performance Hurdles in Integrating dbt with Airflow
summary
Astronomer Cosmos maps dbt models to Airflow tasks and hits scheduling overheads that the project reduces with concrete changes: dbt LS caching (local or remote), profile mapping cache, selective DBT deps and a dbt-runner as library option to avoid subprocesses. Adoption is high (hundreds of thousands of downloads per month) and recent work cuts DAG parsing and task-queue delays—benchmarks show at least ~25% faster DAG run times and examples where queue time falls near zero for the same DAG.
AI-written summary · about
chapters (11)
- 0:00Introduction to dbt and Cosmos
- 1:40Landscape of dbt-Airflow integration
- 4:02Getting started with Cosmos
- 6:33Cosmos features and flexibility
- 11:44Performance challenges and trade-offs
- 17:08Understanding the DAG lifecycle
- 20:58Identifying performance bottlenecks
- 22:54Benchmarking and performance analysis
- 27:18Strategies for performance optimization
- 35:28Impact of recent optimizations
- 37:11Future goals and community
