Skip to content

Commit 2660df7

Browse files
committed
feat: add indexes
1 parent 992e05e commit 2660df7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

services/libs/tinybird/datasources/activities_deduplicated_ds.datasource

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ SCHEMA >
3939
`attributes` String,
4040
`body` String DEFAULT '',
4141
`title` String DEFAULT '',
42-
`url` 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
4345

4446
ENGINE MergeTree
4547
ENGINE_PARTITION_KEY toYear(timestamp)

0 commit comments

Comments
 (0)