make partitions smaller for streamline block txs requests (#45)

* make partitions smaller

* update block txs complete partition key

---------

Co-authored-by: desmond-hui <desmond@flipsidecryto.com>
This commit is contained in:
desmond-hui 2025-01-30 07:48:15 -08:00 committed by GitHub
parent 2af5bcde5e
commit 45e76d6652
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
materialized = "incremental",
unique_key = 'block_id',
merge_exclude_columns = ["inserted_timestamp"],
cluster_by = "ROUND(block_id, -5)",
cluster_by = "ROUND(block_id, -4)",
) }}
SELECT

View File

@ -44,7 +44,7 @@ SELECT
block_id,
ROUND(
block_id,
-5
-4
) :: INT AS partition_key,
{{ target.database }}.live.udf_api(
'POST',