Skip to content

Commit 797e28f

Browse files
committed
docs: say 2048 for the per-key text index threshold
1 parent 46f0ead commit 797e28f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎.changeset/topk-text-index-values.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
perf: read large-block Map text index values per key, most frequent first
66

77
"All values" lookups on Map key=value text indexes with large dictionary blocks
8-
(4096 or more, e.g. `text_index_dictionary_block_size = 8192`, which the
8+
(2048 or more, e.g. `text_index_dictionary_block_size = 8192`, which the
99
collector's migration now sets on ClickHouse 26.6+)
1010
now read each key separately, in parallel queries of at most 10 keys, and stop
1111
after 20,000 tokens per key, so a key with a value per row (request IDs, UUIDs)

‎packages/common-utils/src/__tests__/metadata.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,9 @@ describe('Metadata', () => {
16091609

16101610
it.each([
16111611
[8192, [10, 10, 5]],
1612+
// The per-key threshold is 2048.
1613+
[2048, [10, 10, 5]],
1614+
[1024, [1, 1, 1]],
16121615
[512, [1, 1, 1]],
16131616
])(
16141617
'batches Map text index values by dictionary block size (%d)',

0 commit comments

Comments
 (0)