chore(db): use distributed tables
This commit is contained in:
@@ -11,15 +11,15 @@ export { createClient };
|
|||||||
const logger = createLogger({ name: 'clickhouse' });
|
const logger = createLogger({ name: 'clickhouse' });
|
||||||
|
|
||||||
export const TABLE_NAMES = {
|
export const TABLE_NAMES = {
|
||||||
events: 'events_v2',
|
events: 'events_distributed',
|
||||||
profiles: 'profiles',
|
profiles: 'profiles_distributed',
|
||||||
alias: 'profile_aliases',
|
alias: 'profile_aliases_distributed',
|
||||||
self_hosting: 'self_hosting',
|
self_hosting: 'self_hosting_distributed',
|
||||||
events_bots: 'events_bots',
|
events_bots: 'events_bots_distributed',
|
||||||
dau_mv: 'dau_mv',
|
dau_mv: 'dau_mv_distributed',
|
||||||
event_names_mv: 'distinct_event_names_mv',
|
event_names_mv: 'distinct_event_names_mv_distributed',
|
||||||
event_property_values_mv: 'event_property_values_mv',
|
event_property_values_mv: 'event_property_values_mv_distributed',
|
||||||
cohort_events_mv: 'cohort_events_mv',
|
cohort_events_mv: 'cohort_events_mv_distributed',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const CLICKHOUSE_OPTIONS: NodeClickHouseClientConfigOptions = {
|
export const CLICKHOUSE_OPTIONS: NodeClickHouseClientConfigOptions = {
|
||||||
|
|||||||
Reference in New Issue
Block a user