You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each sample used a fresh single-node MatrixOne process and data directory.
30,000 rows were preloaded outside measurement.
One client, one connection, and one long transaction executed 30,000 prepared parameterized UPDATEs against different primary keys, followed by one COMMIT.
The table contained a primary key and unique indexes on email and external_id.
UPDATE customer_profile
SET level = level +1, updated_at = ?
WHERE id = ?;
Results
Build / database
Transaction phase
First-to-last window behavior
MatrixOne main at a4b0ce286d
19.465s
0.212766ms -> 1.081877ms (5.0848x)
This PR, fresh sample median
3.773s
average ratio at most 1.20x; p50 ratio 0.98-1.09x
MySQL 8.4.11
6.432s
0.9798x
PostgreSQL 18.4
6.097s
0.9531x
Three fresh PR samples:
Sample
UPDATE phase
COMMIT
first-three / last-three avg ratio
first-three / last-three p50 ratio
1
2.783s
71.444ms
1.195x
1.001x
2
3.773s
80.375ms
1.112x
0.983x
3
6.644s
99.760ms
1.195x
1.086x
The three fresh samples did not show monotonic latency growth with accumulated transaction size. Average-window variation was caused by isolated 30-70ms outliers at unrelated transaction positions; p50 remained flat or near-flat.
This comment records only the benchmark protocol and measured results.
Across the three PR samples, first-window p50 values were approximately 0.263-0.293ms and final-window p50 values were approximately 0.271-0.294ms. The first-to-last p50 ratios were 0.993-1.016x. Periodic 100-153ms individual outliers appeared in non-terminal windows and raised some window averages; there was no monotonic increase by transaction position.
All three PR samples passed post-commit row-count, distinct-key, and inventory-balance validation.
Across the three PR samples, first-window p50 values were approximately 0.174-0.189ms and final-window p50 values were approximately 0.172-0.183ms. The last-to-first p50 ratios were 0.962-0.991x. Periodic 61-84ms individual outliers appeared in non-terminal windows; there was no monotonic increase by transaction position.
All three PR samples passed post-commit account-balance, row-count, and unique-transaction validation.
Automated revalidation and deferral analysis (issue-fix-loop handler turn, 2026-10-15)
Verdict: the regression still reproduces on current main. The root cause is the positional CN transaction-workspace architecture, whose replacement is already in active delivery by the issue assignee in draft PR #27013. An independent competing rewrite is not a safe or reviewable path for the automated loop, so this issue is deferred back to human coordination with fresh evidence.
1. Reproduction on the assigned base
Build: 83222fa8371007c7969d3aeca3ab8ced90695f4c (current main at this turn), go1.27.1 darwin/arm64, fresh single-node instance with fresh local-disk data per run.
Protocol: the ORM Unit of Work scenario from this issue — 30,000 preloaded rows, one client/connection/long transaction, 30,000 parameterized single-row UPDATE customer_profile SET level = level + 1, updated_at = ? WHERE id = ?, one COMMIT; table has a primary key plus UNIQUE(email) and UNIQUE(external_id). 1,000-update windows. (Client used the text protocol with inlined parameters instead of binary prepared statements; this does not change the workspace cost path.)
Run
First-3 window avg median
Last-3 window avg median
Last/First
Window-1 p50 → Window-30 p50
Update phase
COMMIT
Single long txn, 2 unique indexes
4.250 ms
15.420 ms
3.628x
1.519 ms → 7.663 ms (~5.0x)
260.4 s
71.2 ms
Same SQL, COMMIT every 5,000 (control)
1.950 ms
2.386 ms
1.224x
1.704 ms → 1.927 ms
90.7 s
0.122 ms (per chunk)
Single long txn, no unique indexes (control)
2.385 ms
5.251 ms
2.202x
1.901 ms → 4.961 ms
139.7 s
77.6 ms
The issue's degradation criterion (last-three/first-three window avg median ≥ 3x and each last-three window ≥ 2x the initial median) is met on the assigned base for the two-unique-index long transaction. The controls reproduce the issue's own ablations: committing every 5,000 statements keeps windows flat (1.22x), and dropping the unique indexes reduces but does not remove the growth (2.20x) — matching the issue's Benchmark B and C pattern that the workspace structure is the size-dependent component and the unique-index machinery amplifies through it. Absolute latencies are inflated by concurrent load on this shared build host; the first-to-last trend is the meaningful signal. All three runs passed post-COMMIT validation: rows=30000, count(distinct email)=30000, count(distinct external_id)=30000, sum(level)=30000, and row 1 carries the expected values — the defect is latency growth, not correctness.
2. Root-cause paths still present on the base
The profile call sites recorded in this issue map to the same positional workspace code on 83222fa8:
In-transaction reads iterate the positional write prefix: LocalDisttaeDataSource.filterInMemUnCommittedInserts walks txn.writes[wsCursor, txnOffset) per table scan and runs the PK filter on every same-table entry (pkg/vm/engine/disttae/local_disttae_datasource.go:637, :573), matching the reported TableScan -> iterateInMemData -> filterInMemUnCommittedInserts hot path (~18% cumulative).
Statement boundaries do full-history maintenance: Transaction.IncrStatementID → mergeTxnWorkspaceLocked sweeps all txn.writes entries (batch-shrink, tables-in-vain, insert/delete bitmap passes) and then dumpBatchLocked(ctx, 0) (pkg/vm/engine/disttae/types.go:858, pkg/vm/engine/disttae/txn.go:2056), matching the IncrStatementID heap growth in the issue profile.
The representation itself is positional: writes []Entry, snapshotWriteOffset, adjustWriteOffset, offsets []int, batchSelectList (pkg/vm/engine/disttae/types.go:396-430). Each single-row UPDATE contributes ~2 same-table entries, so both the read path and statement-end maintenance cost grow linearly with accumulated transaction history, giving the observed super-linear statement latency.
Existing workspace UTs cover accounting/rollback invariants (e.g. TestIssue25589*, TestMergeTxnWorkspace*) but no size-scaling behavior, so they provide no closure artifact for this curve.
3. Fix delivery state
PR refactor(disttae): redesign CN transaction workspace #27013 (codex/txn-workspace-access-index, head 466b74de6d27b1ac3b106012d908313fa6edfc7c, 30 commits) replaces the positional workspace with StatementJournal/TableOverlay/PayloadStore and ordered active indexes — architecturally the correct root-cause fix for the workspace-size degradation recorded here.
As of this turn the PR is OPEN, DRAFT, CHANGES_REQUESTED, merge-conflicting with main, and its head revision fails CI (CI Required / SCA / UT on the head run). The benchmark numbers posted in this issue (e.g. ae69b2b3c3) predate the current head and do not establish a merged fix.
The residual cost already isolated by the assignee — per-statement hidden unique-index point-DELETE maintenance (~2.85 ms/statement, flat first-to-last windows, see the 2026-08-14 ablation comment) — is an absolute-cost problem in pkg/sql/plan/build_dml_util.go (buildDeleteIndexPlans) and its execution operators, is out of scope for refactor(disttae): redesign CN transaction workspace #27013 by the owner's own statement, and does not produce a size-dependent curve. It needs a separately owned issue before the automated loop can act on it.
4. Why the loop did not produce an independent fix
The defect that produces every size-dependent curve recorded in this issue is the workspace's positional representation. The only root-cause fix is the workspace re-architecture already being delivered in #27013 by the human assignee. Reimplementing active workspace indexes inside this loop would duplicate a 100+ file draft across the same positional invariants the owner is still iterating (statement rollback truncation, RC visibility advancement, CN transfer state, spill/compaction, payload reclamation), could not be proven against that same correctness matrix in one session, and would land as an unmergeable conflict with the owner's active PR. This matches the ai-heavy label ("AI assists; core logic by humans") and the 2026-09-04 triage deferral.
Requested human action: the transaction/performance owner drives #27013 to a mergeable, CI-green state and re-runs this issue's benchmark matrix on its final revision; once it merges, this issue can be closed by re-measurement. Separately, spin off the hidden-unique-index DELETE maintenance cost into its own issue with an owner. Removing the deferred label returns the issue to the AI candidate pool.
Activity
gouhongshen commentedon Aug 8, 2026
MatrixOne 长事务逐条 UPDATE Benchmark
1. 测试环境
3639aac46b77fdc28eda80e1698d574b7743f928测试表 200,000 行:
逐条更新语句:
2. Benchmark A:单一长事务,保留两个业务唯一索引
全部 UPDATE 在一个事务中执行,每 1,000 条统计一个窗口。
93,000 条附近的窗口延迟是最初窗口的约 42 倍。
前 50,000 条汇总:
3. Benchmark B:相同逐条 UPDATE,每 5,000 条提交
使用全新 200,000 行数据集;SQL、表结构和预编译方式与 Benchmark A 相同,仅改变事务边界。
前 50,000 条汇总:
4. Benchmark C:单一长事务,仅保留主键索引
删除
uk_volume_file和uk_volume_sandbox_path,保留id主键;其他条件与 Benchmark A 相同。34,000 条附近:
5. Benchmark D:每批 5,000 行集合 UPDATE
使用全新 200,000 行数据集,每批通过一个
CASE id ... WHERE id IN (...)语句更新 5,000 行,共更新 50,000 行。6. Profile 观测
在 Benchmark A 约 66,000 条附近采集 CPU profile:
table_scan.(*TableScan).CallLocalDisttaeDataSource.Next -> filterInMemUnCommittedInserts -> iterateInMemDatagcDrainMemPKFilter.FilterVector和readutil.EncodePrimaryKeyVector同时出现在 CPU 热点中。从 66,000 条到 90,000 条的 heap diff 增长 95.76MB:
lockservice.(*holders).addlockservice.newWaiterQueuereadutil.EncodePrimaryKeyVectorTransaction.IncrStatementID该次 mutex profile 未观察到明显的业务锁等待热点。
7. 生产运行观测
一次 541,241 行的
volume_files.sandbox_path回填任务,在同一事务内逐条执行同类主键 UPDATE:8. 测量边界
[-][Performance] Disttae 长事务逐条 UPDATE 随 workspace 增长持续恶化[/-][+][Performance] 长事务逐条 UPDATE 延迟随事务规模增长的 Benchmark[/+]gouhongshen commentedon Aug 9, 2026
Benchmark:ORM Unit of Work(latest main,fresh instance)
MO 版本
a4b0ce286d182c24efd5a349620ae370162623012026-08-09T11:20:09+08:00fix(plan): use hash anti join for filtered NOT EXISTS (#26798)SELECT VERSION():8.0.30-MatrixOne-v1.3.0go version go1.26.4 darwin/arm64macOS-26.5.2-arm64-arm-64bit隔离与执行协议
测量 SQL:
测量结果
0.212766 ms1.081877 ms5.0848x19,464.535 ms54.242 ms该实际 ORM Unit of Work 形态在最新 main 的干净实例中稳定复现了随事务规模增长的单条 UPDATE 延迟恶化。
gouhongshen commentedon Aug 9, 2026
Benchmark:订单库存扣减 + Order Item + Transactional Outbox(latest main,fresh instance)
MO 版本
a4b0ce286d182c24efd5a349620ae370162623012026-08-09T11:20:09+08:00fix(plan): use hash anti join for filtered NOT EXISTS (#26798)SELECT VERSION():8.0.30-MatrixOne-v1.3.0go version go1.26.4 darwin/arm64macOS-26.5.2-arm64-arm-64bit隔离与执行协议
表结构要点:库存表包含主键和
(warehouse_id, sku_id)唯一索引;订单明细包含主键和(order_id, sku_id)唯一索引;Outbox 包含主键和event_id唯一索引。每个业务操作的 SQL 形态:
测量结果
0.928824 ms3.076118 ms3.3118x30,478.996 ms125.189 ms该订单写入与 Transactional Outbox 组合在最新 main 的干净实例中复现了随事务规模增长的业务操作延迟恶化。
gouhongshen commentedon Aug 9, 2026
Benchmark:账户余额更新 + 不可重复 Ledger Entry(latest main,fresh instance)
MO 版本
a4b0ce286d182c24efd5a349620ae370162623012026-08-09T11:20:09+08:00fix(plan): use hash anti join for filtered NOT EXISTS (#26798)SELECT VERSION():8.0.30-MatrixOne-v1.3.0go version go1.26.4 darwin/arm64macOS-26.5.2-arm64-arm-64bit隔离与执行协议
transaction_id,模拟幂等记账约束。每笔记账的 SQL 形态:
测量结果
0.557536 ms2.320058 ms4.1613x29,353.876 ms93.728 ms该账户余额更新与不可重复 Ledger Entry 组合在最新 main 的干净实例中复现了随事务规模增长的业务操作延迟恶化。
gouhongshen commentedon Aug 9, 2026
Benchmark:库存更新期间周期性读取事务内结果(latest main,fresh instance)
MO 版本
a4b0ce286d182c24efd5a349620ae370162623012026-08-09T11:20:09+08:00fix(plan): use hash anti join for filtered NOT EXISTS (#26798)SELECT VERSION():8.0.30-MatrixOne-v1.3.0go version go1.26.4 darwin/arm64macOS-26.5.2-arm64-arm-64bit隔离与执行协议
warehouse_id的库存合计,覆盖应用在大事务内交替写入和读取自身变更的常见形态。写入 SQL:
周期性读取 SQL:
UPDATE + 周期性读取的窗口结果
0.546593 ms4.107932 ms7.5155x72,503.765 ms50.965 ms周期性读取自身写入结果的延迟
从第 100 次 UPDATE 到第 30,000 次 UPDATE,事务内同形态 SELECT 的单次延迟由
5.239 ms增至318.934 ms,约为60.88x。与此同时,不含周期性读取尖峰主体的 UPDATE p50 也由首窗口的0.181 ms增至末窗口的0.998 ms。该写后读场景在最新 main 的干净实例中同时复现了事务规模增长时的写入延迟恶化,以及读取同一事务内累计写入结果的延迟持续增长。
gouhongshen commentedon Aug 9, 2026
Cross-database Benchmark:六种长事务业务形态(fresh instance)
1. 测试目标
在 MatrixOne、MySQL 和 PostgreSQL 上执行相同业务形态,记录同一长事务内操作延迟随累计操作数变化的表现。本评论仅记录测试条件和测量结果。
2. 版本与环境
8.0.30-MatrixOne-v1.3.0a4b0ce286d182c24efd5a349620ae370162623018.4.11mysql:8.4,image IDsha256:5e7e005a680e75d935984d3d9390990d2a709b3ed67e92708e9e6747f1f754c9REPEATABLE-READ18.4 (Debian 18.4-1.pgdg13+1)postgres:18,image IDsha256:c14be09d80346e5d7716a191b61a60347be1783e177e52da118bcd40bf426f14read committedCOMMIT。>= 3x,并且最后三个窗口均不低于初始中位数的2x。ON DUPLICATE KEY UPDATE与 PostgreSQL 的ON CONFLICT DO UPDATE。3. 首尾窗口结果
单元格格式:
初始中位数 → 末尾中位数(末/初),单位为 ms/业务操作。0.212766 → 1.081877(5.0848x)0.215975 → 0.211606(0.9798x)0.206706 → 0.197006(0.9531x)0.928824 → 3.076118(3.3118x)0.640298 → 0.643266(1.0046x)0.599778 → 0.599120(0.9989x)0.557536 → 2.320058(4.1613x)0.425864 → 0.427086(1.0029x)0.397566 → 0.397220(0.9991x)4.962048 → 4.676397(0.9424x)0.218998 → 0.219692(1.0032x)0.206528 → 0.200753(0.9720x)33.453501 → 1.135100(0.0339x)0.433860 → 0.432316(0.9964x)0.399384 → 0.388030(0.9716x)0.546593 → 4.107932(7.5155x)0.219527 → 0.223306(1.0172x)0.210697 → 0.200035(0.9494x)按上述统一判据:MatrixOne 的 ORM Unit of Work、Order + Outbox、Ledger Posting、Write After Read 四个场景触发;MySQL 和 PostgreSQL 的六个场景均未触发。
4. 单事务总耗时与 COMMIT
19.465s / 54.242ms6.432s / 7.146ms6.097s / 0.521ms30.479s / 125.189ms9.618s / 6.867ms9.030s / 0.419ms29.354s / 93.728ms8.588s / 5.824ms8.054s / 0.468ms289.070s / 131.372ms6.628s / 5.742ms6.037s / 0.479ms172.976s / 105.567ms8.558s / 6.559ms7.944s / 0.663ms72.504s / 50.965ms6.583s / 4.703ms6.268s / 0.433ms5. Write After Read 的事务内读取
每完成 100 次不同主键 UPDATE,执行一次同事务内聚合读取。下表比较最初三个和最后三个读取样本的中位数。
6.8917ms318.9342ms46.278x0.3943ms0.3946ms1.001x0.3763ms0.8539ms2.269x6. 测量边界
gouhongshen commentedon Aug 9, 2026
Cross-database Benchmark:50 万行逐条 UPDATE(30 分钟预算)
1. 测试目标
在 MatrixOne、MySQL 和 PostgreSQL 的全新实例中预装 500,000 行数据,然后在一个连接、一个长事务内顺序执行 500,000 次单行 UPDATE:
全部 UPDATE 完成后统一
COMMIT。本轮为复现实际升级执行边界,单库预算为 30 分钟;未在预算内完成的数据库终止事务并回滚。2. 版本与环境
8.0.30-MatrixOne-v1.3.0a4b0ce286d182c24efd5a349620ae370162623018.4.11mysql:8.4,image IDsha256:5e7e005a680e75d935984d3d9390990d2a709b3ed67e92708e9e6747f1f754c9REPEATABLE-READ18.4 (Debian 18.4-1.pgdg13+1)postgres:18,image IDsha256:c14be09d80346e5d7716a191b61a60347be1783e177e52da118bcd40bf426f14read committedsandbox_path定义为VARCHAR(1024) CHARACTER SET ascii;本 Benchmark 写入的路径均为 ASCII。其余逻辑列、主键、唯一约束、SQL 和操作次序一致。逻辑表结构:
3. 完成情况
170,000 / 500,00034%> 30min500,000 / 500,000100%114.191s117.693ms500,000 / 500,000100%105.755s0.822msMatrixOne 在
30m28s观测时最后一个完整进度点为 170,000。终止信号后的清理过程未立即结束,最终日志在31m47s前又记录到 180,000;上表严格按 30 分钟预算采用 170,000。4. MySQL / PostgreSQL 窗口延迟
每 1,000 次 UPDATE 统计一个窗口。下表为指定累计操作数对应窗口的平均延迟,单位 ms/UPDATE。
0.2470090.2180640.2331110.2109440.2114550.2110150.2167010.2089830.2322880.2018630.2265770.2203550.2179460.2145000.2283260.206204首三个窗口与末三个窗口平均延迟的中位数:
0.243268ms0.228528ms0.9394x0.209097ms0.206204ms0.9862x5. 测量边界
gouhongshen commentedon Aug 14, 2026
Benchmark progress: transaction workspace PR exact 500,000-row UPDATE
Tested build
ae69b2b3c3Completion time
107.719s107.555s106.911s1.857s108.768sReferences recorded in this Issue for the same 500,000-row workload:
116.3s120.47s114.191s105.755sLatency distribution
All 500,000 UPDATEs:
215.437us200.588us271.100us284.804us439.365usPer 50,000-operation window means:
206.9us211.9us213.3us213.8us216.1us215.0us212.6us216.9us219.3us228.6usNo monotonic latency growth with accumulated transaction size was observed in these runs.
Post-commit data validation
500,000sandbox_path:500,000/sandbox/profile/000000001/sandbox/profile/0005000001,250000, and500000matched their expected pathsThis comment records only the benchmark result and validation output.
gouhongshen commentedon Aug 14, 2026
Benchmark progress: transaction workspace PR ORM Unit of Work
Tested build and protocol
ae69b2b3c3emailandexternal_id.Results
a4b0ce286d19.465s0.212766ms -> 1.081877ms(5.0848x)3.773s1.20x; p50 ratio0.98-1.09x6.432s0.9798x6.097s0.9531xThree fresh PR samples:
2.783s71.444ms1.195x1.001x3.773s80.375ms1.112x0.983x6.644s99.760ms1.195x1.086xThe three fresh samples did not show monotonic latency growth with accumulated transaction size. Average-window variation was caused by isolated 30-70ms outliers at unrelated transaction positions; p50 remained flat or near-flat.
This comment records only the benchmark protocol and measured results.
gouhongshen commentedon Aug 14, 2026
Benchmark update: Inventory + Order Item + Transactional Outbox
Protocol
UPDATE inventory_item SET available = available - 1 WHERE sku_id = ?order_itemINSERTtransactional_outboxINSERTResults
Across the three PR samples, first-window p50 values were approximately 0.263-0.293ms and final-window p50 values were approximately 0.271-0.294ms. The first-to-last p50 ratios were 0.993-1.016x. Periodic 100-153ms individual outliers appeared in non-terminal windows and raised some window averages; there was no monotonic increase by transaction position.
All three PR samples passed post-commit row-count, distinct-key, and inventory-balance validation.
gouhongshen commentedon Aug 14, 2026
Benchmark update: Ledger Posting
Protocol
ledger_entry.transaction_idis unique.Results
Across the three PR samples, first-window p50 values were approximately 0.174-0.189ms and final-window p50 values were approximately 0.172-0.183ms. The last-to-first p50 ratios were 0.962-0.991x. Periodic 61-84ms individual outliers appeared in non-terminal windows; there was no monotonic increase by transaction position.
All three PR samples passed post-commit account-balance, row-count, and unique-transaction validation.
7 remaining items
gouhongshen commentedon Oct 15, 2026
Automated revalidation and deferral analysis (issue-fix-loop handler turn, 2026-10-15)
Verdict: the regression still reproduces on current main. The root cause is the positional CN transaction-workspace architecture, whose replacement is already in active delivery by the issue assignee in draft PR #27013. An independent competing rewrite is not a safe or reviewable path for the automated loop, so this issue is deferred back to human coordination with fresh evidence.
1. Reproduction on the assigned base
83222fa8371007c7969d3aeca3ab8ced90695f4c(current main at this turn),go1.27.1 darwin/arm64, fresh single-node instance with fresh local-disk data per run.UPDATE customer_profile SET level = level + 1, updated_at = ? WHERE id = ?, one COMMIT; table has a primary key plusUNIQUE(email)andUNIQUE(external_id). 1,000-update windows. (Client used the text protocol with inlined parameters instead of binary prepared statements; this does not change the workspace cost path.)The issue's degradation criterion (last-three/first-three window avg median ≥ 3x and each last-three window ≥ 2x the initial median) is met on the assigned base for the two-unique-index long transaction. The controls reproduce the issue's own ablations: committing every 5,000 statements keeps windows flat (1.22x), and dropping the unique indexes reduces but does not remove the growth (2.20x) — matching the issue's Benchmark B and C pattern that the workspace structure is the size-dependent component and the unique-index machinery amplifies through it. Absolute latencies are inflated by concurrent load on this shared build host; the first-to-last trend is the meaningful signal. All three runs passed post-COMMIT validation:
rows=30000,count(distinct email)=30000,count(distinct external_id)=30000,sum(level)=30000, and row 1 carries the expected values — the defect is latency growth, not correctness.2. Root-cause paths still present on the base
The profile call sites recorded in this issue map to the same positional workspace code on
83222fa8:LocalDisttaeDataSource.filterInMemUnCommittedInsertswalkstxn.writes[wsCursor, txnOffset)per table scan and runs the PK filter on every same-table entry (pkg/vm/engine/disttae/local_disttae_datasource.go:637,:573), matching the reportedTableScan -> iterateInMemData -> filterInMemUnCommittedInsertshot path (~18% cumulative).Transaction.IncrStatementID→mergeTxnWorkspaceLockedsweeps alltxn.writesentries (batch-shrink, tables-in-vain, insert/delete bitmap passes) and thendumpBatchLocked(ctx, 0)(pkg/vm/engine/disttae/types.go:858,pkg/vm/engine/disttae/txn.go:2056), matching theIncrStatementIDheap growth in the issue profile.writes []Entry,snapshotWriteOffset,adjustWriteOffset,offsets []int,batchSelectList(pkg/vm/engine/disttae/types.go:396-430). Each single-row UPDATE contributes ~2 same-table entries, so both the read path and statement-end maintenance cost grow linearly with accumulated transaction history, giving the observed super-linear statement latency.Existing workspace UTs cover accounting/rollback invariants (e.g.
TestIssue25589*,TestMergeTxnWorkspace*) but no size-scaling behavior, so they provide no closure artifact for this curve.3. Fix delivery state
codex/txn-workspace-access-index, head466b74de6d27b1ac3b106012d908313fa6edfc7c, 30 commits) replaces the positional workspace withStatementJournal/TableOverlay/PayloadStoreand ordered active indexes — architecturally the correct root-cause fix for the workspace-size degradation recorded here.ae69b2b3c3) predate the current head and do not establish a merged fix.pkg/sql/plan/build_dml_util.go(buildDeleteIndexPlans) and its execution operators, is out of scope for refactor(disttae): redesign CN transaction workspace #27013 by the owner's own statement, and does not produce a size-dependent curve. It needs a separately owned issue before the automated loop can act on it.4. Why the loop did not produce an independent fix
The defect that produces every size-dependent curve recorded in this issue is the workspace's positional representation. The only root-cause fix is the workspace re-architecture already being delivered in #27013 by the human assignee. Reimplementing active workspace indexes inside this loop would duplicate a 100+ file draft across the same positional invariants the owner is still iterating (statement rollback truncation, RC visibility advancement, CN transfer state, spill/compaction, payload reclamation), could not be proven against that same correctness matrix in one session, and would land as an unmergeable conflict with the owner's active PR. This matches the
ai-heavylabel ("AI assists; core logic by humans") and the 2026-09-04 triage deferral.Requested human action: the transaction/performance owner drives #27013 to a mergeable, CI-green state and re-runs this issue's benchmark matrix on its final revision; once it merges, this issue can be closed by re-measurement. Separately, spin off the hidden-unique-index DELETE maintenance cost into its own issue with an owner. Removing the
deferredlabel returns the issue to the AI candidate pool.gouhongshen commentedon Oct 20, 2026
PR #30685 is trying to fix this issue.
docs: add rev1 design for disttae workspace point-read bounding (matr…
gouhongshen commentedon Oct 21, 2026
PR #30685 has merged and is awaiting manual validation. The issue remains open.
fix(disttae): bound long-transaction workspace maintenance and close …