Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions services/libs/tinybird/datasources/activities.datasource
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ SCHEMA >
`updatedById` UUID `json:$.updatedById` DEFAULT toUUID('00000000-0000-0000-0000-000000000000'),
`segmentId` LowCardinality(String) `json:$.segmentId` DEFAULT ''

INDEXES >
idx_updatedAt updatedAt TYPE minmax GRANULARITY 1

ENGINE ReplacingMergeTree
ENGINE_PARTITION_KEY toYear(createdAt)
ENGINE_SORTING_KEY id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ INDEXES >

ENGINE MergeTree
ENGINE_PARTITION_KEY toYear(timestamp)
ENGINE_SORTING_KEY id, platform, channel
ENGINE_SORTING_KEY id, platform, channel, updatedAt