Repository navigation
Length codes on records of at most a twentieth (page layout 19), counting before weighing in disjunction groups - #110
Merged
Merged
Conversation
…ting before weighing in disjunction groups
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From
tinshape/perf-integrate19(58a5158). Page layout 19: indexes of an earlier layout must be rebuilt (REINDEX). Layout 19 is layout 18 plus length codes on records of at most a twentieth of the documents.Length codes on rare records (loop/lencode2 3219f95).
postings::CODE_SHARE20) carries a 2-bit length-class code per posting in its TF tail (FORM_CODES0x20). A ranked walk scoring such a term reads its candidates' length classes from the tail it already reads, not from the document-length pages.Count before weighing in disjunction groups (loop/atleast e1f0f74).
at_least::<M>, M ≤ 4, bit-sliced four words at a time.Disjunction container reads without a division (loop/maskload 630c864, added by the coordinator).
LazyBlob::page_offinds the page by a multiply with ⌈2⁶⁴/n⌉.or_loadtakes the slot count fromGroup::slots()rather than the group's starts.PGO, retrained on this tree:
full_score, at both levels.Answers.
tnsreplay --mmapon a fresh dump: 1228 / 1253 / 1252 equal, 0 different.--fullis byte-identical to f0962a8 in all 3 styles.--expect0 different, and--fullbyte-identical to the same M4 references.x86 replay, Sapphire Rapids (m7i.4xlarge), paired-core gate, 3 rounds, each arm with its own replay PGO (x86-64-v4) and its own fresh dump. i19 vs i18 (main):
On the fixed tail sets, score disj +64.5% and full disj +32.6%.
Server pair, Sapphire Rapids, WITH PGO on both arms (PG 18.6 PGDG on two hyperthreads of one core, 2 clients, fixed seeded passes, 3 rounds AB BA AB). Both arms are loader builds with
--pgo strict, 40/40 at both levels, and v4 was picked. i19 ran on its fresh layout-19 database and main on its layout-18 database. Throughput, i19 vs main:The coordinator required conjunction and phrase to be at least −0.5% under PGO. That condition is met: the worst style is +0.79%.
EXPLAIN MiB/query vs i18: score −6.2 / −15.9 / −7.1% and full −4.4 / −9.6 / −5.0% (conj / disj / phrase).
Local M4 campaign (new layout-19 database, strict aarch64 PGO image, runner CPU 0% in every kept run). The full mixed run was rerun alone twice because another repository's CI ran beside it. QPS score /
full_score, change against i18 (824bb83, layout-18 database):150M database (local, mock-build v2): import 21.4 min and index build 178.0 min, both on a busy Mac. There are 4 segments, holding the same documents as layout 18. Index 37.97 GB.
Verified locally:
script/test-all fullgreen, with pgrx 228 passed and conformance unchanged.