From ae8f7af13b4606fe38fc711ee59b7eaf92c1e685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=BD?= Date: Thu, 23 Sep 2021 06:53:39 +0000 Subject: [PATCH] =?UTF-8?q?Update=20Clickhouse=5F=E5=BB=BA=E8=A1=A8?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5=5F=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83=2009?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0=E5=B8=83=E9=9A=86=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E5=99=A8.sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Clickhouse最新全量建表语句/Clickhouse_建表语句_测试环境.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Clickhouse最新全量建表语句/Clickhouse_建表语句_测试环境.sql b/Clickhouse最新全量建表语句/Clickhouse_建表语句_测试环境.sql index 681f4e5..bd1e089 100644 --- a/Clickhouse最新全量建表语句/Clickhouse_建表语句_测试环境.sql +++ b/Clickhouse最新全量建表语句/Clickhouse_建表语句_测试环境.sql @@ -4154,3 +4154,8 @@ ad_cc_rejected_connection_num Int64, ad_generate_time Int64 ) ENGINE =Distributed(ck_cluster,tsg_galaxy_v3,active_defence_event_log_local,rand()); + +alter table tsg_galaxy_v3.session_record_local on cluster ck_cluster add INDEX IF NOT EXISTS client_index common_client_ip type bloom_filter(0.05) GRANULARITY 1; +alter table tsg_galaxy_v3.transaction_record_local on cluster ck_cluster add INDEX IF NOT EXISTS client_index common_client_ip type bloom_filter(0.05) GRANULARITY 1; +alter table tsg_galaxy_v3.interim_session_record_local on cluster ck_cluster add INDEX IF NOT EXISTS client_index common_client_ip type bloom_filter(0.05) GRANULARITY 1; +