Repository navigation
Run the long sparse_grams performance queries on fewer rows - #129628
Conversation
9 of the 11 queries of sparse_grams and sparse_grams_index_build ran 1-8.3 s on the CI amd runner (14-day MasterCI medians). Following the disabled-marker rule for performance tests (no existing query text or number changes), the 9 long queries get disabled="1" and the same 9 queries are appended on fewer rows: - sparse_grams: ClickHouse#1/ClickHouse#2 10M -> 1M rows (ClickHouse#6/ClickHouse#7), ClickHouse#4 10M -> 700k (ClickHouse#8), ClickHouse#5 4M -> 250k (ClickHouse#9). - sparse_grams_index_build: #0-ClickHouse#4 run again as ClickHouse#5-ClickHouse#9 on a 60_000-row sg_src_small (same randomPrintableASCII(200) generator) instead of the 150_000-row sg_src; the text-index INSERT takes LIMIT 2_500 instead of 30_000. sg_src was read only by the disabled queries, so its create, fill and drop are replaced by sg_src_small's. Function, string generator and length, index definitions, granularity and settings are unchanged; only the row counts change. 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-8:20261105-220800 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-40:20261105-210705 |
|
cc @egor-click, could you review this and add the |
|
Workflow [PR], commit [7357602] Summary: ✅
AI ReviewSummaryReplaces nine slow performance queries with smaller workloads, preserving the disabled originals and their history indices, and shrinks the index-build source table. No actionable findings at head Missing context / blind spots
Final VerdictStatus: ✅ Approve. No changes requested. |
|
i am not sure about this part, i think longer tests still make sense if they are good, so time alone shouldn’t be a metric if coverage based selection if tests to run experiment will work, this would not be necessary correct me if i am understanding this pr wrong |
|
The selection was by time only (> 1 s, from @ Algunenano's ask on #129176, tracked in #129258), but nothing is dropped: each of the 9 queries runs again with the same text on fewer rows, and the long version stays in the file as If you'd rather keep the long versions running until the coverage-based selection has results, I'll leave this PR as it is; that's for you and @ Algunenano to decide. |
97f9031
Related: #129258
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Part of #129258 (queries longer than 1 second). On MasterCI (14-day medians, amd), 4 of the 6
sparse_gramsqueries take 4.3-8.3 s and all 5sparse_grams_index_buildqueries take 1.0-5.1 s; the two tests take about 294 s and 129 s per perf job.No existing query number or text changes: 9 queries are disabled (4 in
sparse_grams, 5 insparse_grams_index_build) and the same 9 are appended on fewer rows. The new queries keep the function, string generator and length, index definitions, granularity and settings; only the row count changes (numbers()10M -> 1M / 1M / 700k and 4M -> 250k; index build 150_000 -> 60_000 rows, text-indexINSERTLIMIT 30_000->LIMIT 2_500). The 150_000-rowsg_src, read only by the disabled queries, is replaced by a 60_000-rowsg_src_smallfrom the same generator. Bloom-filter parts stayWideand text-index partsCompact; at 2_500 rows more text-index posting lists are small enough to be embedded in the dictionary (index bytes per row 1873 -> 2196).Projected CI times of the new queries (local release build on 8 pinned cores with
max_threads = 8, CI medians scaled by the local new/old ratio): 0.45-0.66 s amd, 0.40-0.59 s arm. That saves about 4.4 minutes (sparse_grams) and 1.5 minutes (sparse_grams_index_build) per amd job (local per-file time 262 -> 27 s and 126 -> 35 s).This PR's own perf run uses the new file on both servers, so it shows no speed-up.
Validation:
perf.py --print-querieskeeps queries 0-5 and 0-4 identical to master; 6 interleaved local A/A runs (old, new) with CI'sperf.pyarguments ran exactly the enabled queries, with absolute noise thresholds no higher than before, and theiceberg_localconfiguration ofsparse_grams_index_buildpasses.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/129628]
Version info
26.11.1.2139-master(included in26.11and later)