Repository navigation
Run the short and variable-length string joins of hash_join_with_row_store_strings on smaller tables - #131570
Conversation
…er tables Disable the short-string and variable-length-string joins (0-3) and append them on 3M-row builds and a 30M-row probe (6-9). With a 100 MiB L3 (CAT) the row store stays 1.32-1.87x faster at 3M rows (1.51-2.44x at 10M). The Nullable(String) join keeps its 10M-row build: at 3M its 0.9-match speedup falls from 1.86x to 1.29x. Related: ClickHouse#129258 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-10:20261114-084000 |
|
cc @egor-click, could you review this? Disable the short and var-length string joins of hash_join_with_row_store_strings and append them on 3M-row builds with a 30M-row probe |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261114-081001 |
|
Workflow [PR], commit [f60ad95] Summary: ✅
AI ReviewSummaryThe PR reduces the short-string and variable-length-string join fixtures to 3 million build rows and 30 million probe rows, preserving existing performance history and the larger Missing context / blind spots
Final VerdictStatus: ✅ Approve |
|
@groeneai, perf tests showed nothing. |
|
That is expected for this PR: it changes only the XML, and the comparison runs this XML on both the What changes is the cost of the test itself. Its arm run in this PR, against the
One pass over the test's queries goes from 6.6 s to 3.5 s on arm, slightly better than the projection in the description. PR runs compare on arm only, so the amd saving will first show in the |
|
@groeneai Can you merge master please? |
…join-row-store-strings-smaller # Conflicts: # tests/performance/hash_join_with_row_store_strings.xml
|
Done: merged master in f60ad95. The only conflict was #132249, which appended two long-string queries to this file and took query indexes 6-9. My appended queries now come after them as 10-13 (CIDB has no history for 10 or above), master's first 10 entries are unchanged byte for byte, 0-3 stay disabled and 10 queries remain enabled. I ran the merged file once on a master release build: all 10 enabled queries ran without errors, the appended ones in 0.30-0.59 s. I updated the index numbers in the description. |
Related: #129258
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
From the #129258 audit: all 6 queries of
hash_join_with_row_store_strings(#125979) take more than 1 s on amd master (MasterCI medians since 2026-11-10: 1311-2502 ms on amd, 788-1403 ms on arm).No existing query number or text changes: 2 queries (4 with substitutions) are disabled and appended on smaller tables; the tables only the disabled queries read are no longer created.
Nullable(String)join (4, 5) keeps its 10M-row build: with a 100 MiB L3 its row store speedup at match rate 0.9 falls from 1.86x at 10M rows to 1.29x at 3M, so these 2 queries stay above 1 s on purpose.With a 100 MiB L3 (Intel CAT, 8 pinned cores, one release build) the row store is still 1.32-1.87x faster than
enable_hash_join_row_store = 0for the appended queries at 3M rows, against 1.51-2.44x for the originals at 10M (#125979's CI runs showed 1.48-2.29x on amd). Each copy builds the row store with the parallel layout and keeps its original's result/probe ratio (ProfileEvents), andperf.py --print-queriesgives master's first 10 entries byte for byte.Projected onto the CI medians the appended queries take 0.39-0.71 s on amd and 0.24-0.42 s on arm, which saves about 60 s of amd and 36 s of arm query time per master commit. The table setup time does not change, because the Nullable join still reads the 100M-row probe. The appended queries start their own history.
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/131570]
Version info
26.11.1.2700-master(included in26.11and later)