mirror of
https://github.com/FlipsideCrypto/movement-models.git
synced 2026-02-06 11:06:43 +00:00
added sender to events and changes, moved clustering from changes to transactions
This commit is contained in:
parent
cede6d6f4c
commit
4774616008
@ -4,7 +4,7 @@
|
||||
incremental_strategy = 'merge',
|
||||
incremental_predicates = ["dynamic_range_predicate","block_timestamp::DATE"],
|
||||
merge_exclude_columns = ["inserted_timestamp"],
|
||||
cluster_by = ['block_timestamp::DATE','modified_timestamp::DATE'],
|
||||
cluster_by = ['block_timestamp::DATE'],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(version,tx_hash,change_type,inner_change_type,change_address,change_module,change_resource,payload_function);",
|
||||
tags = ['core']
|
||||
) }}
|
||||
@ -16,6 +16,7 @@ SELECT
|
||||
version,
|
||||
success,
|
||||
A.tx_type,
|
||||
A.sender,
|
||||
A.payload_function,
|
||||
b.index AS change_index,
|
||||
b.value :data :data AS change_data,
|
||||
|
||||
@ -16,6 +16,7 @@ SELECT
|
||||
version,
|
||||
success,
|
||||
A.tx_type,
|
||||
A.sender,
|
||||
A.payload_function,
|
||||
b.index AS event_index,
|
||||
b.value :type :: STRING AS event_type,
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
incremental_strategy = 'merge',
|
||||
incremental_predicates = ["dynamic_range_predicate", "block_timestamp::DATE"],
|
||||
merge_exclude_columns = ["inserted_timestamp"],
|
||||
cluster_by = ['block_timestamp::DATE'],
|
||||
cluster_by = ['block_timestamp::DATE','modified_timestamp::DATE'],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(version,tx_hash,payload_function,sender);",
|
||||
tags = ['core']
|
||||
) }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user