mirror of
https://github.com/FlipsideCrypto/eclipse-models.git
synced 2026-02-06 17:26:49 +00:00
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:
parent
2af5bcde5e
commit
45e76d6652
@ -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
|
||||
|
||||
@ -44,7 +44,7 @@ SELECT
|
||||
block_id,
|
||||
ROUND(
|
||||
block_id,
|
||||
-5
|
||||
-4
|
||||
) :: INT AS partition_key,
|
||||
{{ target.database }}.live.udf_api(
|
||||
'POST',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user