comment vacuum analyze to run weekend test

This commit is contained in:
Pablo Martin 2024-09-27 16:29:29 +02:00
parent 4ff1375160
commit a08941c5dc

View file

@ -36,12 +36,13 @@ 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.
# VVVVVVVVVVV Commented for testing purposes. We probably wanna uncomment eventually!!!
# +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