Skip to content

Commit

Permalink
Merge pull request #18 from FlipsideCrypto/upd_final_clustering
Browse files Browse the repository at this point in the history
upd cluster on txs and inputs final
  • Loading branch information
forgxyz authored Jul 25, 2023
2 parents e6ad1f6 + 530df2f commit bcc53e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/silver/core/silver__inputs_final.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
materialized = 'incremental',
incremental_strategy = 'delete+insert',
unique_key = 'input_id',
cluster_by = ["block_number", "tx_id"],
tags = ["core"],
cluster_by = ["_inserted_timestamp::DATE", "_partition_by_block_id"],
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION"
) }}

Expand Down
2 changes: 1 addition & 1 deletion models/silver/core/silver__transactions_final.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
materialized = 'incremental',
incremental_strategy = 'delete+insert',
unique_key = 'tx_id',
cluster_by = ["_inserted_timestamp::DATE", "block_number"],
cluster_by = ["block_number", "tx_id"],
tags = ["core"],
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION"
) }}
Expand Down

0 comments on commit bcc53e7

Please sign in to comment.