Repository navigation
Inverted Text Index v3 - #91518
Inverted Text Index v3#91518
Conversation
|
Workflow [PR], commit [14c03ea] Summary: ⏳
|
|
Do I understand right (just skimming the code) that this effectively brings back part-wide postings and/or dictionaries via |
rschu1ze
left a comment
There was a problem hiding this comment.
Wanted to check the entire PR today (including the machinery in TextIndexUtils) but only found time to check the index itself. Looks overall great.
There was a problem hiding this comment.
minor: we use 02346_text_index_... prefix to identify all text index tests. Even the new ones get the same prefix.
There was a problem hiding this comment.
The practical aspect is that running clickhouse-test 02346_text_index runs all text index related tests.
There was a problem hiding this comment.
You can run clickhouse-test text_index as well.
|
|
||
| serializeBloomFilter(tokens_and_postings.size(), bloom_filter, *index_stream); | ||
| serializeSparseIndex(sparse_index_block, *index_stream); | ||
| TextIndexSerialization::serializeSparseIndex(sparse_index_block, index_stream->compressed_hashing); |
There was a problem hiding this comment.
since we're moving into a stable release with the text index, we might need to introduce a version header now.
There was a problem hiding this comment.
Ok, let's introduce the header version.
| std::vector<TokenPostingsInfo> token_infos; | ||
| }; | ||
|
|
||
| class TextIndexHeader |
There was a problem hiding this comment.
If we decide to include the version in the header, it might to good to re-introduce the TextIndexHeader again.
|
Failed docs check is irrelevant, broken in other PRs |
|
Since this is marked backward-incompatible, how should I upgrade to the next version if I already have some V2 text indexes? |
|
@EmeraldShift please drop the index, upgrade clickhouse and create new one |
Yes. I've updated the description of PR to highlight the changes in the new format. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Improved storage layout of the inverted text index to be more efficient for reading from the object storage. Improved performance of merges in tables with inverted text indexes. If you used the experimental text index before version 25.12, you need to drop the index before the upgrade and rebuild it on the new version.
Details
The new index format is optimized for reading from object storage by reducing the number of random reads required for index analysis.
The key changes:
_part_offset) and recalculate the posting lists using this mapping.