My new company use DBT and I'm struggling to find the answer to this question.
In my example, each model is set to materialise as a table.
If I have models that reference a previously run model and produce a DAG like this:
Query1 > Query2 > Query3 > Query 4.
Will this cause DBT to:
read from the materialised table of Query1 when it hits {{ref ('Query1')}} in Query2?
OR.
run all the SQL from Query1 again, and keep it in memory, when it hits {{ref ('Query1')}} in Query2?