[Performance][4.2-dev] 10Y Q8:十亿行表删除 100 万行后 COUNT(*) 用时 104 分 33 秒,main 为 9 分 16 秒
Maintainers usually reply within 1 day
Assessment
This issue has not been assessed yet.
Description
Big Data 10Y Q8(16_write_dml_1B.sql)在两次完整通过的运行中使用相同测试资产(22d66dfb3c31f080188f72b811151b8f7c9e2f1b)。第 8/15 条 COUNT(*) 在 4.2-dev 用时约为 main 的 11.3 倍。这是执行耗时差异,不是结果错误或 job 超时。
| 产品分支 / SHA | 第 7 条 DELETE | 第 8 条 COUNT(*)(客户端 elapsed_ms) | 第 9 条 SUM(col3) | 原始证据 |
|---|---|---|---|---|
| 4.2-dev / 8a636f8bbdaedbe13a1ed5692bb3f951a453b0eb | 2.69 s | 104 分 33 秒(6,273,383.56 ms) | 4 分 26 秒 | Q8 日志 artifact |
| main / f5fa451732bd1f7be5262e28fda02c6940c994aa | 1.24 s | 9 分 16 秒(555,606.53 ms) | 1 分 36 秒 | Q8 日志 artifact |
复现条件:使用 10Y Q8 的十亿行主键表,保留用例前 6 条 SQL(含全表 UPDATE 及其校验),随后按原顺序执行:
DELETE FROM big_data_test.table_with_pk_for_insert_1B WHERE id <= 1000000;
SELECT COUNT(*) FROM big_data_test.table_with_pk_for_insert_1B;
SELECT SUM(col3) FROM big_data_test.table_with_pk_for_insert_1B;
第二个 4.2-dev 样本:11 月 26 日 Q8 job,产品 c56af3c5f04cb6047769696917b428c2658566a3。按 CN 日志,从第一条 DELETE 到下一条 DELETE 开始为 109 分 03 秒,与历史 4.2-dev 三条合计约 109 分钟一致。这里是整段时间,不是本次 COUNT(*) 的单条计时。慢窗口内 3 个 CN 和 DN 均无重启。
期望:相同数据状态与可比资源下,COUNT(*) 不应出现未解释的数量级差距。建议对照两分支的实际执行计划、扫描块数、删除标记处理、I/O 和并发负载,确认差距来源;现有样本尚不能定位引入提交。
关联 #32010:删除标记对后续扫描的影响值得检查,但尚无证据表明两者根因相同。
- Dominant language
- Go
- Stars
- 1.9k
- Forks
- 312
- Avg merge
- 22h 59m
- Merged PRs (30d)
- 736
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from matrixorigin/matrixone
-
kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
matrixorigin/matrixone#33363 ·
Maintainers usually reply within 1 day
-
kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
matrixorigin/matrixone#33362 ·
Maintainers usually reply within 1 day
-
SLEEP rejects NULL and negative durations that MySQL acceptsPossibly taken @XuPeng-SH claimed this 7 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
matrixorigin/matrixone#32653 ·
Maintainers usually reply within 1 day
-
[Bug]: TestChangeWatchProxy loses its first tenant connection during PingContext in Ubuntu CIPossibly taken @XuPeng-SH claimed this today. Openkind/bug needs-triage
matrixorigin/matrixone#33371 · 1 assignee ·
Maintainers usually reply within 1 day
-
[Bug]: TestDaemonClaimSQLRoundTrip exhausts its shared deadline during the stale claim update in Ubuntu CIPossibly taken @XuPeng-SH claimed this today. Openkind/bug needs-triage
matrixorigin/matrixone#33370 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in matrixorigin/matrixone
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
zalando/postgres-operator#3257 ·
Maintainers usually reply within 2 days
-
[inputs.internal] README lists go_version tag on internal_gather instead of internal_agentPossibly taken @cvas22 claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
influxdata/telegraf#20264 ·
Maintainers usually reply within 1 day
-
[Bug] Standalone migration breaks existing Ingress routes using the envoy-http Service port nameOpenaccepted bug wg/enterprise-environment
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vllm-project/semantic-router#7483 · 1 comment ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
stacklok/toolhive-catalog#2076 ·
Maintainers usually reply within 1 day