Speed up dbt run "pre-query" process for a large project #9071
Unanswered
thomasaarholt
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Could check out https://docs.getdbt.com/reference/global-cli-flags#record-timing-info to identify what process is slowest and see if its possible to optimize it |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have what I suspect is a medium-large dbt project, with just over 2000 models.
Every time I run
dbt run -s mymodel
, it takes 7 seconds before my query (or pre-hooks) start running. This isn't a major issue, but it would be nice if this section could be "cached" or similar, especially as the tooling (like vscode extensions) is getting better and better, and more processes run the equivalent of dbt run.Here's a snippet from my terminal:
Note the timestamps, we start at
:05
and aren't doing real work before ":12". If this section could be sped up, especially on repeated runs of the same model, I think it would make dbt feel much snappier.Does anyone have any tips on how I can improve performance of this part?
Beta Was this translation helpful? Give feedback.
All reactions