Repository navigation
Run the constant_column_search queries above 1 s on hits_10m_single - #132300
Algunenano merged 1 commit into
Conversation
No existing query number or text changes: 7 queries are disabled and the same 7 appended on `hits_10m_single` as 28-34. Queries 4, 7, 11, 15, 18, 21 (`multiMatchAny`) and 17 (`multiSearchFirstIndex`) scan all 100M `URL` values of `hits_100m_single` and take 1.16-1.52 s on MasterCI amd, 0.70-1.04 s on arm. The `vectorscan` database is compiled once and cached (0 global cache misses per measured run), so the time is the per-row scan. Each copy is the original with `hits_100m_single` -> `hits_10m_single` and nothing else; the file already runs its other `match`, `multiMatchAny` and `multiSearchAny` variants on that table. Probe on official MasterCI amd release builds (clickhouse local, 8 pinned cores): per-row user time copy x 10 / original 0.978-1.053 on e191b1a, 324e8a3 and fc8a493. On the ClickHouse#125774 merge (vectorscan 5.4.11 -> 5.4.13, e191b1a -> 324e8a3) the originals 4, 7, 11, 15, 18 move by 1.190, 1.211, 1.042, 1.249, 1.072 and their copies by 1.219, 1.241, 1.030, 1.280, 1.112 (retention 0.70-1.52); 17 and 21 stay flat in both. perf.py, two fc8a493 servers, 12 runs: copy / original 0.106-0.113, about 0.13-0.17 s projected on CI amd and 0.08-0.11 s on arm; per-row user time 0.99-1.03. On the final file perf.py measures the 28 enabled queries and none of the 7 disabled ones, also with --max-queries 10. Projected saving: about 37 s (amd) and 24 s (arm) of query time per master perf job. 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 review of the same head (0 blockers, 0 majors, 1 nit, not blocking).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261117-084600 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261117-082001 |
|
Workflow [PR], commit [3d88793] Summary: ✅
AI ReviewSummaryPR #132300 shortens seven Final VerdictStatus: ✅ Approve |
|
@groeneai I'm curious, why is ARM much better than AMD in this case? Machine size? Different (more optimal) code? |
|
The thread count, not the code. Both runners have 16 vCPUs, but the amd one ( The CPU work is about the same: on MasterCI since 2026-11-13 ( |
f9e17d6
Related: #129258
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Seven queries of
constant_column_search.xml(numbered from 0, as in the report: 4, 7, 11, 15, 18 and 21 withmultiMatchAny, 17 withmultiSearchFirstIndex) scan all 100MURLvalues ofhits_100m_singleand take 1.16-1.52 s on MasterCI amd and 0.70-1.04 s on arm. FormultiMatchAnythevectorscandatabase is compiled once and every measured run hits its cache, so the time is the per-row scan.No existing query number or text changes: 7 queries are disabled and the same 7 appended on
hits_10m_singleas 28-34, as #131677 did foradaptive_aggregation_top_k_threshold. This file already runs its othermatch,multiMatchAnyandmultiSearchAnyvariants on that table.Measured on official MasterCI release builds: per row the copies take 0.98-1.05 of the originals' user time. Across the
vectorscan5.4.13 update of #125774, which slowed queries 4, 7, 11, 15 and 18 by 4-25% locally (4-19% on CI), their copies slow down by 3-28%; queries 17 and 21 stay flat in both. Underperf.pythe copies take 0.106-0.113 of the originals' time, about 0.13-0.17 s on amd and 0.08-0.11 s on arm: about 37 s (amd) and 24 s (arm) less query time per master perf job.On the final file
perf.pyruns none of the disabled queries, also with--max-queries 10. 28 queries stay enabled, so each keeps its chance to be selected. The 7 copies start a new history.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/132300]
Version info
26.11.1.2765-master(included in26.11and later)