Skip to content

Commit c40d5ad

Browse files
committed
feat: add indexes on activities_deduplicated
1 parent 2660df7 commit c40d5ad

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

services/libs/tinybird/datasources/activities_deduplicated_ds.datasource

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,13 @@ SCHEMA >
3939
`attributes` String,
4040
`body` String DEFAULT '',
4141
`title` String DEFAULT '',
42-
`url` String DEFAULT '',
43-
INDEX idx_body_ngrams (body) TYPE ngrambf_v1(3, 1048576, 2, 0) GRANULARITY 64,
44-
INDEX idx_title_ngrams (title) TYPE ngrambf_v1(3, 1048576, 2, 0) GRANULARITY 64
42+
`url` String DEFAULT ''
4543

4644
ENGINE MergeTree
4745
ENGINE_PARTITION_KEY toYear(timestamp)
4846
ENGINE_SORTING_KEY id, platform, channel
47+
48+
INDEXES >
49+
INDEX idx_body_ngrams body TYPE bloom_filter GRANULARITY 3,
50+
INDEX idx_title_ngrams title TYPE bloom_filter GRANULARITY 3
51+

0 commit comments

Comments
 (0)