From 8bd66f00b03cde6634fea1fa9026bfe663d33e86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Mon, 2 Dec 2024 07:18:12 +0100 Subject: [PATCH] chore(db): use distributed tables --- packages/db/src/clickhouse-client.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/db/src/clickhouse-client.ts b/packages/db/src/clickhouse-client.ts index 8178ada2..9ed00c2e 100644 --- a/packages/db/src/clickhouse-client.ts +++ b/packages/db/src/clickhouse-client.ts @@ -11,15 +11,15 @@ export { createClient }; const logger = createLogger({ name: 'clickhouse' }); export const TABLE_NAMES = { - events: 'events_v2', - profiles: 'profiles', - alias: 'profile_aliases', - self_hosting: 'self_hosting', - events_bots: 'events_bots', - dau_mv: 'dau_mv', - event_names_mv: 'distinct_event_names_mv', - event_property_values_mv: 'event_property_values_mv', - cohort_events_mv: 'cohort_events_mv', + events: 'events_distributed', + profiles: 'profiles_distributed', + alias: 'profile_aliases_distributed', + self_hosting: 'self_hosting_distributed', + events_bots: 'events_bots_distributed', + dau_mv: 'dau_mv_distributed', + event_names_mv: 'distinct_event_names_mv_distributed', + event_property_values_mv: 'event_property_values_mv_distributed', + cohort_events_mv: 'cohort_events_mv_distributed', }; export const CLICKHOUSE_OPTIONS: NodeClickHouseClientConfigOptions = {