Sobes.tech
Middle

CRÉER UNE TABLE raw.local_transactions SUR CLUSTER cluster_4x2 ( transaction_id String, user_id String, amount Float64, created_at DateTime ) MOTEUR = ReplicatedMergeTree() PARTITION PAR amount ORDER PAR (transaction_id); CRÉER UNE TABLE raw.transactions SUR CLUSTER cluster_4x2 ( transaction_id String, user_id String, amount Float64, created_at DateTime ) MOTEUR = Distributed('cluster_4x2', 'raw', 'local_transactions', cityHash64(user_id));