Repository navigation
Text index: introduce new pfor postings codec - #118123
Conversation
The new codec `PforDelta` uses the same compressiong used by the text index positions to compress unsigned integers. Compare to other pfor based compressions, it is superior in terms of compression ratio and speed (encode/decode).
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
Workflow [PR], commit [0243d20] Summary: ❌
AI ReviewSummaryThis PR adds the new PR Metadata
Findings
💡 Nits
Final VerdictChanges requested. I would not approve until the unsupported speed claim is either measured or removed, and the source-level settings docs describe the same downgrade contract as the table-engine page. LLVM Coverage ReportMeasured on commit 0243d20.
Changed lines: Changed C/C++ lines covered: 66/74 (89.19%) · Uncovered code |
Build profile diff (arm_release)Comparing commit See the job log for details. |
CurtizJ
left a comment
There was a problem hiding this comment.
Looks good! I've left a few minor comments.
pfor postings codec
Resolves conflicts with the `pfor` posting list codec from ClickHouse#118123: - `SegmentedPostingListCodecBase` keeps master's class hierarchy and takes over `getSegmentSize`, `createEncoder` and the `decode` overloads bounded by the token metadata; `createEncoder` uses the codec's own type, so `pfor` indexes are built with a PFor encoder - `addDocumentsFromMap` from master takes the `PostingListBuildContext` - the memory accounting of posting list encoders is removed together with the granule memory accounting removed in ClickHouse#119927 Co-Authored-By: Claude Fable 5.1 <[email protected]>
The new codec
pforuses the same compression used by the text index positions to compress unsigned integers.Compare to other posting codecs, it is superior in terms of compression ratio and speed (encode/decode). Performance benchmark will follow up in a separate PR.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Added the
pforcodec for posting lists of the text index. It improves the compression ratio of posting lists and speeds up their decoding. It can be enabled per index with theposting_list_codec = 'pfor'index argument, or for all text indexes of a table with thetext_index_posting_list_codectable setting.Workflow [PR]
Sync PR [sync-upstream/pr/118123]
Version info
26.10.1.221-master(included in26.10and later)