From 34d0e9cffb70edd918068d735a5507ab1bbe47f6 Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Wed, 2 Oct 2024 15:32:22 +0200 Subject: [PATCH] activate vacuum analyze again --- dbt_project.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index 0ad1163..54a53b8 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -36,10 +36,9 @@ models: # it's very fitting for our needs. You can read more here: # https://www.crunchydata.com/blog/postgresl-unlogged-tables dwh_dbt: - # VVVVVVVVVVV Commented for testing purposes. We probably wanna uncomment eventually!!! - # +post-hook: - # sql: "VACUUM ANALYZE {{ this }}" - # transaction: false + +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.