mirror of
https://github.com/FlipsideCrypto/sei-models.git
synced 2026-02-06 11:37:07 +00:00
add so (#39)
This commit is contained in:
parent
0d65c724c3
commit
d3668dd81e
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,3 +16,4 @@ logs/
|
||||
.env
|
||||
.DS_Store
|
||||
.user.yml
|
||||
dbt-env/
|
||||
@ -2,7 +2,7 @@
|
||||
materialized = "incremental",
|
||||
unique_key = "contract_address",
|
||||
merge_exclude_columns = ["inserted_timestamp"],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(contract_address)",
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(contract_address,abi_hash,bytecode), SUBSTRING(contract_address,abi_hash,bytecode)",
|
||||
tags = ['abis']
|
||||
) }}
|
||||
|
||||
|
||||
@ -4,7 +4,8 @@
|
||||
unique_key = "block_number",
|
||||
cluster_by = "block_timestamp::date",
|
||||
tags = ['core'],
|
||||
merge_exclude_columns = ["inserted_timestamp"]
|
||||
merge_exclude_columns = ["inserted_timestamp"],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(hash,parent_hash,receipts_root,sha3_uncles,state_root,transactions_root)",
|
||||
) }}
|
||||
|
||||
SELECT
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
materialized = 'incremental',
|
||||
unique_key = 'contract_address',
|
||||
merge_exclude_columns = ["inserted_timestamp"],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(contract_address, token_symbol, token_name), SUBSTRING(contract_address, token_symbol, token_name)",
|
||||
tags = ['core','recent_evm_test']
|
||||
) }}
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
materialized = "incremental",
|
||||
unique_key = "created_contract_address",
|
||||
merge_exclude_columns = ["inserted_timestamp"],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_timestamp, tx_hash, created_contract_address, creator_address), SUBSTRING(created_contract_address, creator_address)",
|
||||
tags = ['recent_evm_test','core']
|
||||
) }}
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
incremental_strategy = 'delete+insert',
|
||||
unique_key = 'block_number',
|
||||
cluster_by = ['block_timestamp::DATE'],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION",
|
||||
tags = ['core']
|
||||
) }}
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
incremental_strategy = 'delete+insert',
|
||||
unique_key = "block_number",
|
||||
cluster_by = "ROUND(block_number, -3)",
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash)",
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_hash, tx_hash, from_address, to_address)",
|
||||
tags = ['core']
|
||||
) }}
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
incremental_strategy = 'delete+insert',
|
||||
unique_key = "block_number",
|
||||
cluster_by = ['block_timestamp::DATE', '_inserted_timestamp::DATE'],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_function_signature, origin_from_address, origin_to_address, contract_address, from_address, to_address, symbol), SUBSTRING(origin_function_signature, contract_address, from_address, to_address, symbol)",
|
||||
tags = ['core']
|
||||
) }}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user