yolo activate vacuum analyze
This commit is contained in:
parent
e401efdd5d
commit
73753092fa
1 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,12 @@ models:
|
|||
# it's very fitting for our needs. You can read more here:
|
||||
# https://www.crunchydata.com/blog/postgresl-unlogged-tables
|
||||
dwh_dbt:
|
||||
+post-hook:
|
||||
sql: "VACUUM ANALYZE {{ this }}"
|
||||
transaction: false
|
||||
# ^ This makes dbt run a VACUUM ANALYZE on the models after building each.
|
||||
# It's pointless for views, but it doesn't matter because Postgres fails
|
||||
# silently withour raising an unhandled exception.
|
||||
staging:
|
||||
+materialized: table
|
||||
+schema: staging
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue