## 问题描述 08-09 nightly 回归发现 sysbench1000w `random_ranges_1000` TPS 严重退化,自动二分定位到 PR #26850。 ## 二分结果 | Field | Value | |-------|-------| | **First bad commit** | `f9a3184c3ae2` | | **PR** | #26850 — perf(plan): cost encoded regular index access | | **Author** | @XuPeng-SH | | **Last good commit** | `df49b097935c` — fix(plan): reject invalid ALTER COLUMN defaults (#26880) | | **退化指标** | `sysbench_random_ranges_10_10000000 \| vuser=1000` | | **Baseline TPS** | 41,167 | | **Bad commit TPS** | 886 | | **Delta** | **-97.85%** | ## 二分过程 | 轮次 | Commit | 判定 | TPS | Delta | |------|--------|------|-----|-------| | Baseline | `54303518d` | good | 41,167 | — | | Suspect bad | `00cb7ef31` | bad | 1,373 | -96.66% | | Round 1 | `866517223` | bad | 1,131 | -97.25% | | Round 2 | `8be242b25` | good | 36,639 | -11.00% | | Round 3 | `bc74d70da` | bad | 1,105 | -97.32% | | Round 4 | `df49b0979` | good | 38,710 | -5.97% | | Round 5 | `f9a3184c3` | bad | 1,063 | -97.42% | | **Round 6** | **`f9a3184c3`** | **found** | **886** | **-97.85%** | ## 分析 PR #26850 修改了优化器对 encoded regular index access 的代价估算模型,导致 `random_ranges` 查询选择了更差的执行计划,TPS 从 41,167 暴跌到 ~1,000。 ## 参考 - 二分 workflow: https://github.com/matrixorigin/mo-auto-test/actions/runs/31463768686 - 原始回归 nightly: https://github.com/matrixorigin/mo-auto-test/actions/runs/31321856701 - PR #26850: https://github.com/matrixorigin/matrixone/pull/26850
Activity
fix(plan): correct prepared range index costing (#26974)
Ariznawlll commentedon Aug 13, 2026
昨天晚上的性能还没有恢复:
commit: 6a29b7d
fix(plan): preserve prepared regular-index range performance (#27122)
XuPeng-SH commentedon Aug 14, 2026
fixed
Ariznawlll commentedon Aug 15, 2026
最新main random_ranges性能已恢复
fix(plan): correct prepared range index costing (matrixorigin#26974)
fix(plan): preserve prepared regular-index range performance (matrixo…
fix(plan): correct prepared range index costing (matrixorigin#26974)
fix(plan): preserve prepared regular-index range performance (matrixo…
fix(plan): correct prepared range index costing (matrixorigin#26974)
fix(plan): preserve prepared regular-index range performance (matrixo…