fix(analytics): Updated frm clickhouse script for creating table (#5272)

Co-authored-by: vrishab.srivatsa] <vrishab.srivatsa@juspay.in>
This commit is contained in:
Abhishek Kanojia
2024-07-11 00:33:47 +05:30
committed by GitHub
parent f8f69728b3
commit 545a6dbfc6
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ CREATE TABLE fraud_check (
`modified_at` DateTime DEFAULT now() CODEC(T64, LZ4),
`last_step` LowCardinality(String),
`payment_capture_method` LowCardinality(String),
`sign_flag` Int8
`sign_flag` Int8,
INDEX frmNameIndex frm_name TYPE bloom_filter GRANULARITY 1,
INDEX frmStatusIndex frm_status TYPE bloom_filter GRANULARITY 1,
INDEX paymentMethodIndex payment_method TYPE bloom_filter GRANULARITY 1,

View File

@ -209,7 +209,7 @@ CREATE TABLE active_payments (
`merchant_id` String,
`created_at` DateTime64,
`flow_type` LowCardinality(Nullable(String)),
INDEX merchantIndex merchant_id TYPE bloom_filter GRANULARITY 1
INDEX merchantIndex merchant_id TYPE bloom_filter GRANULARITY 1,
INDEX flowTypeIndex flow_type TYPE bloom_filter GRANULARITY 1
) ENGINE = MergeTree
PARTITION BY toStartOfSecond(created_at)