added search optimization post hook

This commit is contained in:
shah 2023-05-16 09:44:09 -07:00
parent 67dca171e1
commit 760ad4dc15
2 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,8 @@
materialized = 'incremental',
unique_key = "_unique_key",
incremental_strategy = 'merge',
cluster_by = ['block_timestamp::DATE','block_id::NUMBER'],
cluster_by = ['block_timestamp::DATE'],
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION equality(block_id)"
) }}
WITH

View File

@ -2,8 +2,8 @@
materialized = 'incremental',
unique_key = "_unique_key",
incremental_strategy = 'merge',
cluster_by = ['block_timestamp::DATE','_inserted_timestamp::DATE','block_id::NUMBER'],
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION"
cluster_by = ['block_timestamp::DATE','_inserted_timestamp::DATE'],
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION" | "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON equality(block_id)"
) }}
SELECT