mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
fix(analytics): Updated frm clickhouse script for creating table (#5272)
Co-authored-by: vrishab.srivatsa] <vrishab.srivatsa@juspay.in>
This commit is contained in:
@ -49,7 +49,7 @@ CREATE TABLE fraud_check (
|
|||||||
`modified_at` DateTime DEFAULT now() CODEC(T64, LZ4),
|
`modified_at` DateTime DEFAULT now() CODEC(T64, LZ4),
|
||||||
`last_step` LowCardinality(String),
|
`last_step` LowCardinality(String),
|
||||||
`payment_capture_method` LowCardinality(String),
|
`payment_capture_method` LowCardinality(String),
|
||||||
`sign_flag` Int8
|
`sign_flag` Int8,
|
||||||
INDEX frmNameIndex frm_name TYPE bloom_filter GRANULARITY 1,
|
INDEX frmNameIndex frm_name TYPE bloom_filter GRANULARITY 1,
|
||||||
INDEX frmStatusIndex frm_status TYPE bloom_filter GRANULARITY 1,
|
INDEX frmStatusIndex frm_status TYPE bloom_filter GRANULARITY 1,
|
||||||
INDEX paymentMethodIndex payment_method TYPE bloom_filter GRANULARITY 1,
|
INDEX paymentMethodIndex payment_method TYPE bloom_filter GRANULARITY 1,
|
||||||
|
|||||||
@ -209,7 +209,7 @@ CREATE TABLE active_payments (
|
|||||||
`merchant_id` String,
|
`merchant_id` String,
|
||||||
`created_at` DateTime64,
|
`created_at` DateTime64,
|
||||||
`flow_type` LowCardinality(Nullable(String)),
|
`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
|
INDEX flowTypeIndex flow_type TYPE bloom_filter GRANULARITY 1
|
||||||
) ENGINE = MergeTree
|
) ENGINE = MergeTree
|
||||||
PARTITION BY toStartOfSecond(created_at)
|
PARTITION BY toStartOfSecond(created_at)
|
||||||
|
|||||||
Reference in New Issue
Block a user