VYTVORTE TABUĽKU raw.local_transactions NA KLASTRE cluster_4x2 (
transaction_id String,
user_id String,
amount Float64,
created_at DateTime
) MOTOR = ReplicatedMergeTree()
PARTÍCIONOVAŤ PODĽA amount
ZORADIŤ PODĽA (transaction_id);
VYTVORTE TABUĽKU raw.transactions NA KLASTRE cluster_4x2 (
transaction_id String,
user_id String,
amount Float64,
created_at DateTime
) MOTOR = Distributed('cluster_4x2', 'raw', 'local_transactions', cityHash64(user_id));