mirror of
https://github.com/FlipsideCrypto/fsc-ibc.git
synced 2026-02-06 14:26:44 +00:00
switch incremental strategy to merge
This commit is contained in:
parent
fbc56fd423
commit
a646e707a3
@ -6,7 +6,7 @@
|
||||
|
||||
{{ config(
|
||||
materialized = 'incremental',
|
||||
incremental_strategy = 'delete+insert',
|
||||
incremental_strategy = 'merge',
|
||||
unique_key = 'blocks_id',
|
||||
cluster_by = ['block_timestamp::DATE'],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_id)",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
{{ config(
|
||||
materialized = 'incremental',
|
||||
incremental_strategy = 'delete+insert',
|
||||
incremental_strategy = 'merge',
|
||||
unique_key = 'msg_attributes_id',
|
||||
cluster_by = ['block_timestamp::DATE'],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_id, tx_id)",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
{{ config(
|
||||
materialized = 'incremental',
|
||||
incremental_strategy = 'delete+insert',
|
||||
incremental_strategy = 'merge',
|
||||
unique_key = 'transactions_id',
|
||||
cluster_by = ['block_timestamp::DATE'],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_id, tx_id)",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
{{ config(
|
||||
materialized = 'incremental',
|
||||
incremental_strategy = 'delete+insert',
|
||||
incremental_strategy = 'merge',
|
||||
unique_key = 'transactions_id',
|
||||
cluster_by = ['block_timestamp::DATE'],
|
||||
incremental_predicates = [fsc_ibc.standard_predicate()],
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
{{ config(
|
||||
materialized = 'incremental',
|
||||
incremental_strategy = 'delete+insert',
|
||||
incremental_strategy = 'merge',
|
||||
unique_key = 'transactions_logs_id',
|
||||
cluster_by = ['block_timestamp::DATE'],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_id, tx_id)",
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
|
||||
{{ config(
|
||||
materialized = 'incremental',
|
||||
incremental_strategy = 'delete+insert',
|
||||
incremental_strategy = 'merge',
|
||||
unique_key = 'blocks_id',
|
||||
cluster_by = ['modified_timestamp::DATE'],
|
||||
incremental_predicates = [fsc_ibc.standard_predicate()],
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
|
||||
{{ config (
|
||||
materialized = 'incremental',
|
||||
incremental_strategy = 'delete+insert',
|
||||
incremental_strategy = 'merge',
|
||||
unique_key = 'msg_attributes_id',
|
||||
cluster_by = ['modified_timestamp::DATE'],
|
||||
incremental_predicates = [fsc_ibc.standard_predicate()],
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
|
||||
{{ config (
|
||||
materialized = 'incremental',
|
||||
incremental_strategy = 'delete+insert',
|
||||
incremental_strategy = 'merge',
|
||||
unique_key = 'msgs_id',
|
||||
cluster_by = ['modified_timestamp::DATE', 'partition_key'],
|
||||
incremental_predicates = [fsc_ibc.standard_predicate()],
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
{{ config (
|
||||
materialized = "incremental",
|
||||
incremental_strategy = 'delete+insert',
|
||||
incremental_strategy = 'merge',
|
||||
unique_key = 'transactions_id',
|
||||
cluster_by = ['modified_timestamp::DATE','partition_key'],
|
||||
incremental_predicates = [fsc_ibc.standard_predicate()],
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{{ config(
|
||||
materialized = 'incremental',
|
||||
unique_key = ['tx_id'],
|
||||
incremental_strategy = 'delete+insert',
|
||||
incremental_strategy = 'merge',
|
||||
cluster_by = ['block_timestamp::DATE'],
|
||||
tags = ['silver', 'core', 'phase_2']
|
||||
) }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user