mirror of
https://github.com/FlipsideCrypto/osmosis-models.git
synced 2026-02-06 11:47:03 +00:00
cluster key
This commit is contained in:
parent
44a0878ffd
commit
9fd1051aa5
@ -4,7 +4,7 @@
|
|||||||
incremental_strategy = 'merge',
|
incremental_strategy = 'merge',
|
||||||
incremental_predicates = ["dynamic_range_predicate", "block_timestamp::date"],
|
incremental_predicates = ["dynamic_range_predicate", "block_timestamp::date"],
|
||||||
merge_exclude_columns = ["inserted_timestamp"],
|
merge_exclude_columns = ["inserted_timestamp"],
|
||||||
cluster_by = ['block_timestamp::DATE','_inserted_timestamp::DATE'],
|
cluster_by = ['block_timestamp::DATE','_inserted_timestamp::DATE','modified_timestamp::DATE'],
|
||||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_id,msg_type,attribute_key,attribute_value);",
|
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_id,msg_type,attribute_key,attribute_value);",
|
||||||
tags = ['core']
|
tags = ['core']
|
||||||
) }}
|
) }}
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
incremental_strategy = 'merge',
|
incremental_strategy = 'merge',
|
||||||
incremental_predicates = ["dynamic_range_predicate", "block_timestamp::date"],
|
incremental_predicates = ["dynamic_range_predicate", "block_timestamp::date"],
|
||||||
merge_exclude_columns = ["inserted_timestamp"],
|
merge_exclude_columns = ["inserted_timestamp"],
|
||||||
cluster_by = ['block_timestamp::DATE','_inserted_timestamp::DATE'],
|
cluster_by = ['block_timestamp::DATE','_inserted_timestamp::DATE','modified_timestamp::DATE'],
|
||||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_id)",
|
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_id)",
|
||||||
tags = ['core']
|
tags = ['core']
|
||||||
) }}
|
) }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user