Sobes.tech
Middle

CREA TABELLA raw.local_transactions SUL CLUSTER cluster_4x2 ( transaction_id String, user_id String, amount Float64, created_at DateTime ) MOTORE = ReplicatedMergeTree() PARTIZIONA PER amount ORDINA PER (transaction_id); CREA TABELLA raw.transactions SUL CLUSTER cluster_4x2 ( transaction_id String, user_id String, amount Float64, created_at DateTime ) MOTORE = Distributed('cluster_4x2', 'raw', 'local_transactions', cityHash64(user_id));