Skip to content

Evaluate the text index direct-read fallback once per read block, not once per granule - #122350

Closed
groeneai wants to merge 2 commits into
ClickHouse:masterfrom
groeneai:groeneai-text-index-fallback-once-per-read
Closed

groeneai wants to merge 2 commits into
ClickHouse:masterfrom
groeneai:groeneai-text-index-fallback-once-per-read

Conversation

@groeneai

@groeneai groeneai commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Closes: #122229

Changelog category (leave one):

  • Performance Improvement

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

A text index that cannot answer a LIKE/ILIKE pattern or a hasPhrase phrase from its posting lists now evaluates the predicate once per read block instead of once per granule, without copying the column data first. Such queries take 3-9% less CPU time, and about half as much for narrow columns with a small index_granularity. Applies to text indexes on a plain column without a preprocessor or postprocessor.

Description

When a text index gives up its LIKE/ILIKE dictionary scan, or a hasPhrase phrase exceeds text_index_hint_max_selectivity, the direct read evaluates the predicate on the column data. It did so once per granule, each time on a copy of that granule. Reported with a patch by @ snelheidai.

Now the predicate runs once over the block the reader already holds, without copying it, and the result is appended after the granule loop.

This applies to a text index on a plain column without a preprocessor or postprocessor, where the expression is the search function over that column with constant arguments: evaluating it once per block changes nothing observable, and its intermediates add at most 2 bytes per row. Other indexes, including ilike over a lower preprocessor, and queries that convert the column, such as CAST(s, 'String') over a LowCardinality(String) column, keep the per-granule path, since their expressions can contain functions such as sleep or intermediates as wide as the column; forcing the new path on a postprocessor index tripled its peak memory.

The fallback reader's row count is now checked where the block is built, with a named error instead of a late PARAMETER_OUT_OF_BOUND.

Measured on the new path: LIKE/ILIKE, hasPhrase, and startsWith/endsWith on the array tokenizer, over String, FixedString, LowCardinality, Nullable and subcolumns, Wide and Compact parts; a new test compares such reads with a table without the index. NULLs in a Nullable column still raise the existing Code: 349 here (#113332 addresses it).

On release builds with an A/A control: 3-6% faster at max_threads = 1; at 192 threads the wall-time change is not distinguishable from the A/A noise, while CPU drops 3-7%; peak memory is unchanged. A performance test query is added.

Measurements

FIX/BASE, two crossover replicates; the A/A value is the same estimator on BASE against a byte-identical copy.

arm A/A wall user CPU
granularity 1024, 1 thread -1.5% -4.0%, -6.4% -4.6%, -5.6%
granularity 8192, 1 thread -1.0% -3.7%, -3.4% -4.2%, -3.3%
granularity 65536 (1 granule per block: no-op) -1.1% -0.4%, -1.0% -1.1%, -1.0%
128 parts, 1 thread -0.3% -4.4%, -3.2% -6.2%, -8.9%
FixedString(1) / LowCardinality, granularity 1024 +1.5% / -0.2% -50% / -48% -51% / -50%
postprocessor index (excluded) / scan not given up +0.3% / +0.5% -0.3%, -0.4% / +1.3%, +0.2% 0.0%, 0.0% / -0.2%, -0.1%
granularity 1024 / 8192, 192 threads +4.6% / +1.9% -0.9%, -5.2% / +0.1%, -2.6% -6.6%, -5.5% / -2.6%, -3.9%
added perf query -26% -34%

Workflow [PR]
Sync PR [sync-upstream/pr/122350]

groeneai and others added 2 commits September 25, 2026 22:26
When a text index gives up its LIKE/ILIKE dictionary scan for a part, or a
hasPhrase query exceeds text_index_hint_max_selectivity, the direct-read path
must still produce the pattern's virtual column. It does that by reading the
required physical columns once into a block and then, once per mark, cutting
that mark's slice out of every physical column into a fresh block and
evaluating the original predicate on the copy. IColumn::cut is a real copy, so
each such query copies the searched column's bytes once more than it needs to:
with the defaults a read block spans about max_block_size / index_granularity
marks, so the predicate runs 8 times over 8 separate copies instead of once
over the block the reader already holds.

For a text index on a plain column with neither a preprocessor nor a
postprocessor, evaluate the predicate once for the whole read instead, and
append the result to the output column after the mark loop. The physical block
is shared by a shallow Block copy, so no column data is copied at all. Every
other index keeps the per-mark evaluation unchanged.

The rule is read from the index metadata, once per reader, because a reader
serves exactly one index. On such an index the fallback expression is the
search function (like, ilike, startsWith, endsWith, hasPhrase) applied to the
indexed column with constant arguments, plus the cast to UInt8 and the
materializing outputs, which are pointer copies for a full column. None of
these can observe how many times it runs, and no intermediate holds more than
two bytes per row, apart from the dictionary part of a LowCardinality result,
which the per-mark path also builds once per mark. Only an index expression or
a pre/postprocessor can bring
anything else into the expression: a function with an observable side effect
such as sleep, an executable UDF that runs its command once per call while
reporting itself deterministic and side-effect free, or an intermediate as
wide as the searched column. Those indexes stay on the per-mark path. So does
ilike over an ASCII lower/upper preprocessor, which would be safe to hoist but
is excluded to keep the rule a single metadata check.

The fallback reader's row count is now stated where the block is built. The
per-mark cut enforced that contract by accident, throwing
PARAMETER_OUT_OF_BOUND on a short block and dereferencing null on an absent
column; the reader's return value is discarded, a Wide part reports the
maximum over its columns, and nothing on this path fills missing columns. A
single evaluation over the whole block consumes that contract directly, so it
is checked once per read instead, which also turns the existing path's late
error into an early named one.

The result is appended rather than moved: res_columns accumulates across
several readRows calls through MergeTreeRangeReader::DelayedStream, so moving
the evaluated column in would discard rows a previous call had gathered. Its
length is read_rows, so a read that stops before the end of the block stays
correct by construction.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Drop the design narration above the fallback row-count check and shorten the evaluateFallback declaration comment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-issue PR origin: picked up an external GitHub issue labels Sep 25, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 1 finding), plus my own review.

# Sev Finding Verdict Evidence / action
1 ⚠️ The tests do not show that the fallback runs once per read block instead of once per granule (05258_text_index_direct_read_fallback_matches_full_scan.sql, text_index_like.xml) DISAGREE Both paths return the same rows by design, so no row-set test can tell them apart; the added performance query can (26% faster on the new path, so a revert shows up as a slowdown). No test-only ProfileEvent added.
2 💡 evaluateFallback repeats the tail of fillColumnFallback AGREE, not changed fillColumnFallback is left as it is so the diff only adds the new path; the two can share a helper if preferred.

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are terminal per finding.

Session id: cron:clickhouse-review-slot-10:20260925-223100

@clickhouse-gh

clickhouse-gh Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [3bf01fa]

Summary: ❌

job_name test_name status info comment
Performance Comparison (amd_release, master_head, 4/6) FAIL Performance dashboard
int_parsing #54 FAIL dashboard
int_parsing #31 FAIL dashboard
join_nullable_keys_small_table #9 FAIL dashboard
int_parsing #49 FAIL dashboard
datetime64_conversion #0 slower query history
datetime64_conversion #1 unstable query history
int_parsing #62 slower query history

AI Review

Summary

This PR changes the text-index direct-read fallback so exact LIKE/ILIKE and hasPhrase cases on a plain single-column index can evaluate the original predicate once per read block instead of once per granule, and adds focused stateless/performance coverage around that path. I did not find a correctness, compatibility, or performance-contract issue in the current diff.

Missing context / blind spots
  • ⚠️ I did not run the new stateless or performance tests locally because this checkout does not include a ready build tree or binaries; the review is based on the current PR diff, the checked-out code, and the GitHub discussion state.
Final Verdict

✅ No review findings.

LLVM Coverage Report

Measured on commit 3bf01fa.

Metric Baseline Current Δ
Lines 88.20% 88.20% +0.00%
Functions 91.80% 91.80% +0.00%
Branches 79.50% 79.50% +0.00%

Changed lines: Changed C/C++ lines covered: 40/43 (93.02%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-performance Pull request with some performance improvements label Sep 25, 2026
@groeneai
groeneai requested review from Ergus and ahmadov September 25, 2026 23:23
@clickhouse-gh clickhouse-gh Bot added the comp-text-index Full-text search: inverted/text index in MergeTree (tokenizers, posting lists, GIN-style index bu... label Sep 26, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 3bf01fad9 with master 6d96c4d88 (stripped binary size, per-symbol sizes and ThinLTO time; object sizes against the warmup build of 06108f98a; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Object file sizes

4 object files changed (+23.77 KiB total), 0 added.

Object file Master PR Δ
src/CMakeFiles/dbms.dir/Storages/MergeTree/MergeTreeReaderTextIndex.cpp.o 488.29 KiB 512.07 KiB +23.78 KiB (+4.87%)

716 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only clickhouse-bundle) and not compared.

Compile time of recompiled translation units

9 translation units recompiled, 42 s compile time in total, 9 of them have a recent master baseline.

Job report

@clickhouse-gh

clickhouse-gh Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

📊 Cloud Performance Report

✅ AI verdict: no_change — no significant changes across 38 queries analysed

no significant changes detected. K_source=6 K_base=30 flagged=0/65

clickbench

🟢 No significant changes

tpch_adapted_1_official

🟢 No significant changes

Debug info
  • StressHouse run: b7ee9ae7-7d5f-4171-a435-33c27c35c9a0
  • MIRAI run: ddbbe77f-726c-4569-a413-c6207af35671
  • PR check IDs:
    • clickbench_1873467_1790386101
    • clickbench_1873480_1790386100
    • clickbench_1873486_1790386101
    • tpch_adapted_1_official_1873492_1790386100
    • tpch_adapted_1_official_1873523_1790386101
    • tpch_adapted_1_official_1873537_1790386101

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 3bf01fa

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Performance Comparison (amd_release, master_head, 4/6) / datetime64_conversion #0, int_parsing #31, #49, #62 dashboard confirmed_regression, and here the shard's own report agrees: +67.1%, +20.2%, +16.4%, +22.6%, reproduced after the harness restarted both servers (+65.4%, +17.2%, +15.9%, +22.9%). None of these queries executes the changed text-index reader: toDateTime64(rand(), 0) runs over numbers(20000000), and toString(<integer column>) over hits_100m_single, a table no performance test gives a text index. The tested tree 8165bab7465e is this head merged into 06108f98a54b, the commit the reference binary was built from, so the two binaries differ only by this diff. The new server is not uniformly slower: in the same run the three int_parsing queries over hits_10m_single got about 10% faster, and the shard total is +0.3%. #121847 is already in the tested tree, and ClickHouse/performance-comparison#5 covers a dashboard-only verdict, not a slowdown the report confirms, so neither owns this row a fix task is created (investigating at full effort, fixing-PR link to follow here)
Mergeable Check, PR rollups, red only because of the row above (Mergeable Check names that one shard) a fix task is created (the same one as for the row above)

All 173 check runs completed (137 pass, 35 not selected, 1 red), Finish Workflow is green and
CH Inc sync passed. CIDB has no FAIL or ERROR test row on this head. The shard's 4 too long
is informational: it never fails a shard on its own.

Session id: cron:our-pr-ci-monitor:20260926-050212

@groeneai

Copy link
Copy Markdown
Collaborator Author

Correction to the ledger above: the two binaries do not differ only by this diff, and the Performance Comparison (amd_release, master_head, 4/6) red (datetime64_conversion #0 +67%, int_parsing #31/#49/#62 +16-23%) is code placement, not this change. Measured on the CI binaries and the job's own artifacts:

  • The hot loops are identical in both binaries, at the same offsets mod 64: callOnIndexAndDataType<DataTypeDateTime64, ...> with its per-row call to convertToDecimal<UInt32, DateTime64>, and ConvertImpl<Int16, String> with its per-row call to itoa(short). The job's CPU flame graphs put all of the extra time there (loop self samples 57 -> 135, callee 59 -> 81, rand() 8 -> 8).
  • The build of Use the query condition cache when a filter is moved to PREWHERE after an early row estimate #122339 (same master base, same PR flags) runs datetime64_conversion #0 in 0.034 s like the reference. Its hot code is identical to this build's and sits 64 bytes lower, mainly because its .eh_frame is 104 bytes smaller. With lld's default -z noseparate-code the page offset of .text is the size of the read-only sections before it, so any PR that changes their size (unwind info, strings, exception tables) can move all of .text by a multiple of 64 bytes, which -falign-functions=64 and -falign-loops=32 (Add -falign-loops=32 to stabilize benchmark results #100914) cannot absorb.
  • The reference is also a different build: official master keeps debug info, PRs set DISABLE_ALL_DEBUG_SYMBOLS=1. Through the XRay threshold (Build profile diff: do not report the debug-info offset as a size change #116639, [XRay] Don't count debug instructions towards the instruction threshold llvm/llvm-project#219100) that is 168,089 instrumented functions against 157,364, and it shows in timings: in each of the last six weeks the median PR-run diff of complex_array_creation #0/#1 was -9% to -11%, against about 0 on master runs. Its per-row callee ColumnVector<UInt8>::insertRangeFrom has an XRay sled only in the official build.

@alexey-milovidov, this is the comparability problem the build profile diff solved with the warmup baseline (8576ccf). For the perf comparison, would you take (A) a reference built with the PR flags (link and upload the amd_release_pr_cache_warmup build) plus -Wl,-z,separate-code on the release link, which I can send, or (B) keep the current setup?

@rschu1ze

Copy link
Copy Markdown
Member

@ahmadov If you have time, could you look at this one? Low-priority though.

@groeneai

groeneai commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator Author

Following the ask on #100391, I sent option A as #124676 (the master_head reference built with the PR flags). -z separate-code is already on master since #123073, so that PR does not add it.

@groeneai

groeneai commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator Author

@egor-click, a question about the perf reds that #124676 will not remove.

#124676 makes the master_head reference a build of the same master commit with the PR flags, so a slow placement that comes with the base hits both sides, and #122782 demotes most per-process draws. What remains is unchanged hot code at a slow placement in one PR build, which a restart reproduces. Example on #123900 (#123900 (comment)): is_valid_utf8 #7 0.039 -> 0.083 s, hot functions byte-identical in two builds of that PR and in the reference, 177.3 instructions per row in all three, 83.7 cycles per row against 35.8, and the only slow value in 1625 amd runs of that query in 14 days.

Should such reds stay blocking and be left to the reviewer (A), or should I measure how often they red PRs once #124676 is in, and propose a check that tells them apart (B)?

@egor-click

Copy link
Copy Markdown
Contributor

@egor-click, a question about the perf reds that #124676 will not remove.

#124676 makes the master_head reference a build of the same master commit with the PR flags, so a slow placement that comes with the base hits both sides, and #122782 demotes most per-process draws. What remains is unchanged hot code at a slow placement in one PR build, which a restart reproduces. Example on #123900 (#123900 (comment)): is_valid_utf8 #7 0.039 -> 0.083 s, hot functions byte-identical in two builds of that PR and in the reference, 177.3 instructions per row in all three, 83.7 cycles per row against 35.8, and the only slow value in 1625 amd runs of that query in 14 days.

Should such reds stay blocking and be left to the reviewer (A), or should I measure how often they red PRs once #124676 is in, and propose a check that tells them apart (B)?

lets wait for 124676 and decide after, it feels like the right fix for harness bug

@groeneai

groeneai commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks. I'll come back here with how often such reds still fire on unrelated PRs once #124676 is merged and has a few days of runs.

@groeneai

groeneai commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator Author

Fixing PR for the amd_release 4/6 perf red (int_parsing #31/#49/#62): #125278 (closed unmerged: the release binaries stay PIE). A fix task is moved to pending; the fixing-PR link will follow here.

@groeneai

groeneai commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator Author

Fixing PR for the amd_release 4/6 perf red (int_parsing #31/#49/#62): #125949. Correction: #125949 is not shown to fix this red. Slowdowns like this one are new since PIE (one side at least 15% slower in none of the 246-262 master runs per query from Jul 1 to Sep 9, 3.8-15.9% since Sep 15), but I have no mechanism for it on x86-64. Per-query numbers: #125949 (comment)

@ahmadov

ahmadov commented Oct 15, 2026

Copy link
Copy Markdown
Member

@groeneai there is no visible performance improvement with this PR. Let's merge the latest origin/master into it and see what performance benchmark produces.

@rschu1ze

Copy link
Copy Markdown
Member

#122229 (comment)

@rschu1ze rschu1ze closed this Oct 15, 2026
@groeneai

groeneai commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator Author

I pushed the master merge (9166982) a few minutes after the PR was closed, so there will be no new benchmark run here. I accept the decision. For the record, on the previous head the query this PR targets, text_index_like #8, was 26 -> 27 ms on amd and 22 -> 18 ms on arm, which agrees that nothing was visible on amd.

@groeneai

Copy link
Copy Markdown
Collaborator Author

@egor-click, the numbers I said I would bring once #124676 had some runs (it merged on Oct 20; #126977, which starts both servers without ASLR, on Oct 21 16:21Z).

PR perf shards that compared against the performance reference build, Oct 21 16:30Z to Oct 22 10:12Z:

  • arm: 40 of 1170 shards red (37 on dashboard rows, 3 on errors), and 34 of the 192 PR heads that ran all 6 shards had at least one red shard. 19 of the 40 red only on queries that blocked 3 or more different PRs in those 17 hours (json_to_string #1 on 7 PRs, skip_index_planning_with_patch_parts #0 on 5, long_primary_key, group_uniq_array and qbit_one_bit_distance on 3 each).
  • amd: 18 of 229, 11 of them on just two PRs.

The clearest case is long_primary_key #2 on arm, which is only primary key analysis (216001 marks on both sides). Performance reference builds took about 0.31 s up to 92b4f66 and about 0.41 s from d879e48 on (the two merges in that range do not touch index analysis), while official builds of the same commits stayed at 0.31 s. PR builds on the newer bases take 0.32 to 0.54 s, and the reference build of 1010688 alone took 0.38 to 0.44 s over 12 jobs. On #120502 (report) the PR build took 0.513, 0.533 and 0.552 s in the main run and both restarts, the reference 0.409, 0.434 and 0.434 s. The dashboard held it to a 9.6% threshold learned from master runs, which compare official builds.

Should such reds (A) stay blocking and be left to the reviewer, or (B) be scored by the dashboard against the spread of the performance reference builds of recent master commits instead of official master runs? For (B) I can send the per-query spreads.

@egor-click

Copy link
Copy Markdown
Contributor

@groeneai please send me per-query spreads, i am looking into getting back eval based also on historical differences between PR and Master

@groeneai

Copy link
Copy Markdown
Collaborator Author

@egor-click here they are: https://gist.github.com/groeneai/c6e8746173bf95e9463b69be5ebea698

per-query-spreads.tsv has one row per arch and query, from Oct 21 16:21Z (#126977) to Oct 22 13:30Z: master runs (official vs official, about 55 commits) and PR runs against the performance reference build (1498 arm and 284 amd shards; the 150 that fell back to the official build are left out). The spreads are quantiles of new/old over the per-job medians of client_time. The README has the columns, and per_query_spreads.py regenerates the table from query_metric_runs_v1. CIDB does not record which reference a PR job used, so shard-reference-kind.tsv has it, taken from each job.log.

For most queries PR runs are no noisier than master runs (median p95 of new/old: arm 1.017 master vs 1.019 PR, amd 1.028 vs 1.028). About 9% are clearly noisier (p95 at least 1.5 times as far from 1: 324 of 3679 arm queries and 295 of 3397 amd queries that have 30 or more jobs of each kind).

query official, s master p95 / p99 PR p95 / p99 reference build per commit, s official build p10..p90, s
arm long_primary_key #2 0.309 1.087 / 1.109 1.235 / 1.748 0.304..0.453 0.305..0.350
arm skip_index_planning_with_patch_parts #0 0.016 1.055 / 1.148 1.137 / 1.213 0.014..0.018 0.014..0.018
arm json_to_string #1 1.829 1.236 / 1.513 1.256 / 1.501 1.344..1.833 1.369..2.052
arm group_uniq_array #1 0.040 1.211 / 1.233 1.223 / 1.298 0.039..0.044 0.039..0.048
arm qbit_one_bit_distance #5 0.008 1.131 / 1.195 1.133 / 1.171 0.008..0.009 0.008..0.009
amd long_primary_key #2 0.276 1.028 / 1.038 1.080 / 1.140 0.254..0.290 0.254..0.293

So among the queries that blocked 3 or more PRs, only long_primary_key, and partly skip_index_planning_with_patch_parts, are noisier against the reference build. json_to_string #1 is just as wide on master: official builds take 1.35 to 2.10 s, in three clusters. 4 of its 7 reds in this window were below its master p95 (+17% to +21%, vs +23.6%).

@egor-click

Copy link
Copy Markdown
Contributor

@groeneai this sounds like the issue we need to fix in the test long_primary_key #2 specifically. Do you have an idea on what is causing such a discrepancy between master and pr for it?

there were also a few PRs that removed some differences between master and pr, did they do any good?

@groeneai

Copy link
Copy Markdown
Collaborator Author

@egor-click

1. long_primary_key #2. The query is almost only primary key analysis (1 part and 216001 marks on both servers). On arm, builds made after #118916 (ARM optimized-routines for the string functions, merged Oct 19) are sometimes slow on it: every counter is the same and only FilteringMarksWithPrimaryKeyMicroseconds grows, by 1.6 to 1.8 times. Since #126977 this is a property of the binary instead of the server start, so a restart repeats it. I don't know yet what puts a binary in the slow mode (details in #127480).

It is mostly not a master/PR difference. Share of arm jobs where new/old of this query was above 1.10:

master jobs PR jobs
Oct 16 to Oct 19 21:00Z (before #118916) 0 of 88 23 of 882 (2.6%)
#124676 to #126977 12 of 81 (15%) 83 of 515 (16%)
#126977 to #127365 7 of 81 (9%) 60 of 411 (15%)

So master runs have it too, while the dashboard held #120502 to 9.6% (4.8% history noise from 30 master points).

The code it measures is KeyCondition::applyFunction, which builds a String cache key for each range bound. #127495 (approved, not merged yet) makes that lookup allocation-free: at its head the three queries went from 336/342/320 to 151/152/152 ms on arm and from 261/262/260 to 150/151/150 ms on amd. Once it is in master I'll post on #127480 whether arm builds still have the slow mode.

2. The harness PRs. I can't see an effect on the red rate yet. PR shards red on a dashboard row:

arm amd
Oct 16 to #124676 (Oct 20 03:56Z) 81 of 5885 (1.4%) 41 of 1175 (3.5%)
#124676 to #126977 (Oct 21 16:21Z) 42 of 3098 (1.4%) 20 of 607 (3.3%)
#126977 to #127387 (Oct 22 15:09Z) 56 of 1828 (3.1%) 17 of 351 (4.8%)
#127387 to #127365 (Oct 22 22:26Z) 11 of 676 (1.6%) 1 of 108 (0.9%)
#127365 to Oct 23 11:00Z 10 of 1140 (0.9%) 1 of 251 (0.4%)

Over all queries, PR runs were already as noisy as master runs before #124676 (median p95 of new/old: 1.020 for both on arm, 1.031 master vs 1.030 PR on amd) and still are, so these PRs can only move a few queries. #126977 cut the master share above for long_primary_key #2 but not the PR share, and it made a slow binary stay slow in the confirmation restart. #127365 removed the fallback to the official build: 10 of the 56 arm reds between #126977 and #127387 had it, and no shard of a workflow started after #127365 merged did. The drop after Oct 22 15:00Z is mostly the end of the long_primary_key wave (one red after 15:09Z, none after #127365), and it coincides with #127387 (the empty historical thresholds of Oct 20 and Oct 22), so I can't separate the two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-text-index Full-text search: inverted/text index in MergeTree (tokenizers, posting lists, GIN-style index bu... groeneai-origin-issue PR origin: picked up an external GitHub issue pr-performance Pull request with some performance improvements

Projects

None yet

4 participants