Repository navigation
[4.2-dev] Fix ordered ODKU key ownership and action semantics on 4.2 - #31979
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 2f7d53593b1b5f0d4198a5a3238993153cc9136e
Assessment: approve
Reviewed the complete delta, affected owners and consumers, six linked issues, and complete discussion. Ordered arbitration, replay, validation, locking, cleanup, and protocol handling are coherent. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a1869d-999c-7481-b340-ae4a63e8cee4 · slot 1 · generation 2
Validation:
-
Go 1.26.4 focused tests passed: 50 top-level tests across eight packages. Log: focused-go1264.log; receipt: checks/1793528732174922836-2.json.
-
Public MySQL/three-CN regression suite passed all 21 scenarios, including remote ordering, rollback, foreign-key retries, and competing writes. Log: public-sql.log; receipt: checks/1793528914393151351-2.json.
-
Generated protobuf audit passed, preserving existing field definitions and unrelated method semantics. Report: generated-audit.json; receipt: checks/1793528493293781754-2.json.
-
Final audit confirmed unchanged source, matching frozen delta, 170 matching native inputs, complete discussion coverage, and test receipt/log consistency. Report: validation-evidence.json; receipt: checks/1793529004991746785-2.json.
Limitations:
-
Broader race suites and comparative benchmarks remain author-reported; they were assessed but not independently repeated.
-
CI was still in progress in the supplied snapshot.
-
Initial native-header and toolchain setup failures were recovered before successful validation.
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 6c2d460de5b2a161cbec01229a6df6f322b87c55
Assessment: approve
Completed the full review and reconciled all discussion. Ordered ODKU behavior and the implicit-NULL type correction are consistent with the accepted design. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a1869d-820c-7212-9788-aecfb86a4141 · slot 0 · generation 2
Validation:
-
Planner and dedupjoin package suites passed; three unrelated planner subtests explicitly skipped.
-
All 22 public three-CN ODKU scenarios and CDC TestGetErrorMsg passed.
-
Package selection, build and vet passed for all 11 changed production packages.
-
Verified reusable same-PR evidence and 170 matching native inputs. Source remained unchanged.
-
Logs and receipts are indexed in attempt-1/validation-evidence.json; final audit passed with receipt checks/1793531822915872821-4.json. Discussion coverage is saved in discussion-assessment.json.
Limitations:
-
Broader race, performance, SCA and standalone BVT results remain author-reported; they were not independently rerun.
-
Frozen CI evidence still contains pending or in-progress checks.
fengttt
left a comment
There was a problem hiding this comment.
I assume changes to 4.2 are all port/cherrypicks from main. All reviewed/tested.
If this is correct, go ahead with the merge.
|
mo-bot review · Commit: New discussion was assessed; the previous review remains unchanged. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Changes required
Reviewed published head 6c2d460de5b2a161cbec01229a6df6f322b87c55, against original comparison base 7a161fda57d53e0f15131b26372c71b67cc5db87. These two findings remain applicable to the published code. This is a COMMENT review because the authenticated account is also the PR author.
[P2] Preserve generated-column semantics on the compatibility execution path
In bind_insert.go:1765–1788, generated expressions now read column references from the current row image. That works with sequential ordered replay, but the retained skipDedup=1 path evaluates all assignment RHS expressions before installing their results (join.go:1027–1054).
Earlier exact-base/head SQL validation recorded a=2, g=4 for g=a*2 on the base, but a=2, g=2 on this head in compatibility mode; the normal ordered path produced 2,4. This is a silent stored-value inconsistency.
Retain the appropriate generated-expression substitution for that path, or migrate it completely to equivalent sequential evaluation. Add regression coverage for both execution modes and dependent generated columns.
[P2] Remove quadratic cold-buffer selection from repeated updates
In ordered_odku.go:334–347, every destination vector in a candidate bank is compared against every vector in the row image. For each non-final action this costs O(U × C), where U is the mutable-column count and C is the row width; updating most columns makes the scan quadratic.
Replace the nested identity scan with a linear-time ownership/membership check while preserving cross-column aliases, borrowed vectors, failure cleanup and reuse safety. Validate repeated-target updates across increasing table widths, including aliasing and allocation-failure cases.
Evidence and publication status
This review rechecked remote source. The SQL evidence is from the earlier review, not tests rerun during this posting. The separately prepared local fixes have not been committed and pushed to this PR, so their validation does not clear these findings on the published head.
The final local candidate's performance assessment remained INCONCLUSIVE: the prespecified confidence bounds were not met. That is neither a performance pass nor proof of a stable regression in that candidate. Publish the complete fixes and validate the resulting remote commit before treating these findings as resolved.
6c2d460 to
c1c2bce
Compare
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 9085200685a58ee644fc96c013fd35fddf9b7ad7
Assessment: request_changes
The ordered action owner, writer fence, and captured transaction view have distinct responsibilities and reuse existing execution and storage mechanisms. The previously reported wide-batch failure is fixed. A performance validation gap remains for the common existing-owner upsert path; the available current comparison is inconclusive and does not demonstrate a regression.
Model: gpt-6.1-terra / max
Session: 01a22b07-00b6-7e32-b0a1-3099d0b867c7 · slot 1 · generation 39
- P2
docs/design/ordered-odku-4.2.md:304: Representative 8,192-row upserts update existing primary-key owners through the new ordered-action path.
Impact: The latency impact on an existing 4.2 workload remains unbounded by the available evidence. The pinned feature-design policy requires proportionate performance evidence for affected hot paths, and the 4.2 maintenance policy requires bounded deployment impact. This is a validation gap, not an observed production regression.
Evidence: The author-reported focused existing-owner comparison is 51.04 ms versus 47.31 ms, but the baseline process spread is 10.59%, above the design's 5% batch precision criterion. The ordinary INSERT control has 7.13% baseline spread. The focused PK-insert and 512-byte insert comparisons provide useful counterevidence, but do not validate existing-owner updates; earlier reported regressions concern different heads. Complete a repeatable matched comparison against the current base for an existing-owner batch with an ordinary INSERT control, then address any reproducible breach or obtain the responsible owner's explicit decision on a bounded cost.
Validation:
-
Isolation preflight passed, and the retained native libraries were checked against 170 source inputs: checks/1796049738757233163-3.json and checks/1796050136913193964-4.json.
-
Focused action-owner, planner, compiler, statement-view, cleanup, and TN policy tests passed: checks/1796050381561639370-3.json and owners.stdout.log.
-
Public SQL ordered-upsert, writer-rollback, and partitioned-upsert tests passed, including the 60,000-row wide insert: checks/1796050499649867538-3.json and public.stdout.log.
-
Additional no-conflict SQL and persisted deduplication tests passed: checks/1796050803014837613-3.json and extra.stdout.log.
-
Targeted race tests passed across seven packages, including action reset, typed equality, hash join, streaming row number, spill replay, attempt publication, and statement-view cleanup: checks/1796051356753211251-3.json and race.stdout.log.
-
The assigned diff passed git diff --check: checks/1796051819307806302-3.json. discussion-assessment.json accounts for all 47 indexed discussion keys.
Limitations:
-
The benchmark figures are author-reported; raw samples and command receipts were not supplied in local_validation and were not independently reproduced.
-
The supplied CI snapshot had relevant build, unit-test, and static-analysis jobs in progress. The author's broader BVT and race-suite claims were not independently rerun.
|
mo-bot review · Commit: "interrupted" |
|
Rebased on Matched comparison within the same time blocks. Both workloads satisfy the 5% repeatability requirement and the 10% median-cost limit in the time-blocked comparison. This supplies the matched evidence requested for the existing-PK path. The full release performance matrix is still open.
The existing-PK point estimate is 0.27 percentage points below the budget. As a cross-check, the median of the 161 within-block ratios (the mean of the two PR times divided by the mean of the two release times) was +9.54% for existing-PK and −0.93% for plain INSERT. Both versions had long p95 tails on this shared host. Four independent file-backed clusters were online together, with two processes per version. For each SQL iteration the four processes took turns doing reset, public MySQL Exec and result verification. The test driver rotated the order across blocks so that each process occupied every position and ran immediately after each other process equally often across a complete four-block cycle. Only one client did foreground work at once. The three untimed warmups and the single-iteration calibration were retained. Each workload has 161 timed executions per process, 322 per version. Scheduler coordination is outside the Exec timer and does not change database code, SQL or correctness checks. Peak RSS per process was 1.62 GiB on release and 1.67 GiB on the PR. Whole-process sequential control. The same CPU set and the original benchmark measured first release, then PR, PR and release. In that experiment release p50 varied between processes by 14.81% on existing-PK and 12.59% on INSERT. Keeping that separate result exposes the sensitivity to which time window each process received.
Four fresh three-CN Linux clusters used the order release, PR, PR, release. Each process timed 251 public MySQL autocommit executions of each workload. That gives 502 samples per version per workload. Every iteration seeded the same table contents and checked the resulting row count and values outside the timer. The three warmups and the benchmark framework’s separate single-iteration calibration are excluded. Peak process RSS for the complete two-workload process was 1.79 GiB on release and 1.80 GiB on the PR. RSS includes the embedded database services. Raw samples appear below in acquisition order. What changed. On the first encounter with a stored row with immutable keys, the ordered action owner reuses the source layout already checked on batch admission. It still checks key conflicts before evaluating assignments and validates the evaluated row when publishing it. The regression permutes the incoming columns. A deliberately incorrect mapping reports zero affected rows where SQL semantics require four. The correct implementation passes under the race detector. Implementation · Regression Effect of the optimization itself. A separate six-process run compared release, the rebased PR before the optimization ( CPU sample. Separate 71-execution existing-PK profiles on the final sources sampled 7.25 CPU seconds on release and 7.74 on the PR across the full process, including setup, seeding and verification. On the PR, ordered action application accounted for 0.47 s inclusive, including 0.37 s in publication. Target preparation accounted for 0.30 s. The lock operator was comparable at 1.17 and 1.16 s. These inclusive stacks overlap and do not break down the timed Exec latency. Correctness and checks. All 1,264 checked statements across six repository BVT fixtures passed on this rebase. All 106 tests and subtests in the public SQL selection passed, including the 60,000-row upsert and statement rollback. Five affected packages passed their full CI-short race suites. Public signed-zero key movement, both upstream max-execution-time tests and the reordered-input regression also passed under race. Configured incremental static analysis finished with zero lint issues across seven packages. Build, commands and sampling methodLinux amd64, Go 1.26.4 with CGO, file-backed ext4/NVMe, one log service, one TN and three CNs. The exact public benchmark was copied from the final tree into the release tree as a Go test overlay. Both binaries used the same native libraries. Each process had its own network namespace with loopback and its own fresh data and temp directories. Both cases used the same pinned cores and # In the release checkout, benchmark.overlay maps the absolute path of the
# missing pkg/tests/dml/ordered_odku_benchmark_test.go to the exact PR file.
.agents/skills/mo-dev/scripts/mo-cgo-test -p=3 -overlay "$overlay" -c -o "$out/base.test" ./pkg/tests/dml
# In the checked-out PR:
.agents/skills/mo-dev/scripts/mo-cgo-test -p=2 -c -o "$out/final.test" ./pkg/tests/dml
# From a fresh working directory for each process, with a fresh TMPDIR
# and the same native LD_LIBRARY_PATH:
GOMAXPROCS=4 taskset -c 4,5,6,7 "$binary" -test.v -test.timeout=20m \
'-test.run=^$' '-test.bench=^BenchmarkOrderedODKU$/^(pk_bulk_existing_8192|ordinary_bulk_insert_8192)$' \
-test.benchtime=251x -test.count=1The six-process comparison used six fixed cores, 151 executions per case and the order release / pre-optimization / optimized / optimized / pre-optimization / release. Both experiments compute the pooled median, nearest-rank p95, and spread as the larger process median divided by the smaller minus one. All timed executions are included. SHA-256 fingerprints are below. Final four-process comparison, raw Exec durations in nsprocess,workload,ns_1,ns_2,ns_3,ns_4,ns_5,ns_6,ns_7,ns_8,ns_9,ns_10,ns_11,ns_12,ns_13,ns_14,ns_15,ns_16,ns_17,ns_18,ns_19,ns_20,ns_21,ns_22,ns_23,ns_24,ns_25,ns_26,ns_27,ns_28,ns_29,ns_30,ns_31,ns_32,ns_33,ns_34,ns_35,ns_36,ns_37,ns_38,ns_39,ns_40,ns_41,ns_42,ns_43,ns_44,ns_45,ns_46,ns_47,ns_48,ns_49,ns_50,ns_51,ns_52,ns_53,ns_54,ns_55,ns_56,ns_57,ns_58,ns_59,ns_60,ns_61,ns_62,ns_63,ns_64,ns_65,ns_66,ns_67,ns_68,ns_69,ns_70,ns_71,ns_72,ns_73,ns_74,ns_75,ns_76,ns_77,ns_78,ns_79,ns_80,ns_81,ns_82,ns_83,ns_84,ns_85,ns_86,ns_87,ns_88,ns_89,ns_90,ns_91,ns_92,ns_93,ns_94,ns_95,ns_96,ns_97,ns_98,ns_99,ns_100,ns_101,ns_102,ns_103,ns_104,ns_105,ns_106,ns_107,ns_108,ns_109,ns_110,ns_111,ns_112,ns_113,ns_114,ns_115,ns_116,ns_117,ns_118,ns_119,ns_120,ns_121,ns_122,ns_123,ns_124,ns_125,ns_126,ns_127,ns_128,ns_129,ns_130,ns_131,ns_132,ns_133,ns_134,ns_135,ns_136,ns_137,ns_138,ns_139,ns_140,ns_141,ns_142,ns_143,ns_144,ns_145,ns_146,ns_147,ns_148,ns_149,ns_150,ns_151,ns_152,ns_153,ns_154,ns_155,ns_156,ns_157,ns_158,ns_159,ns_160,ns_161,ns_162,ns_163,ns_164,ns_165,ns_166,ns_167,ns_168,ns_169,ns_170,ns_171,ns_172,ns_173,ns_174,ns_175,ns_176,ns_177,ns_178,ns_179,ns_180,ns_181,ns_182,ns_183,ns_184,ns_185,ns_186,ns_187,ns_188,ns_189,ns_190,ns_191,ns_192,ns_193,ns_194,ns_195,ns_196,ns_197,ns_198,ns_199,ns_200,ns_201,ns_202,ns_203,ns_204,ns_205,ns_206,ns_207,ns_208,ns_209,ns_210,ns_211,ns_212,ns_213,ns_214,ns_215,ns_216,ns_217,ns_218,ns_219,ns_220,ns_221,ns_222,ns_223,ns_224,ns_225,ns_226,ns_227,ns_228,ns_229,ns_230,ns_231,ns_232,ns_233,ns_234,ns_235,ns_236,ns_237,ns_238,ns_239,ns_240,ns_241,ns_242,ns_243,ns_244,ns_245,ns_246,ns_247,ns_248,ns_249,ns_250,ns_251
A1,pk_bulk_existing_8192,1280824691,978101138,280403623,51525831,46038929,50557109,46247286,51760743,46120690,52263963,89020449,51726657,44445265,49501597,51235845,70334733,85006899,66553362,45273093,71934812,64810695,44114626,65220267,44777368,53839542,46200243,50203671,42956123,51904522,45261622,52348049,55269787,47082114,58567447,86279388,50447491,46573267,50453390,69978858,51073384,46728275,45931557,63421515,47853077,50577925,51541153,45506187,43448594,48399432,145814758,140279838,173439581,149273366,242745782,132910282,127189352,64475268,85992023,67267577,70331876,60144013,57749614,53824850,60854363,52000957,54143161,83164645,55577659,80335301,57936588,62845451,50984666,54043269,53073799,61742866,48247951,40176749,44996114,38676251,39155209,40926525,39742853,40652433,40678900,82311567,44234839,46496849,41339152,64338920,47631612,44966209,47236614,78394791,40550097,41370680,45375863,39042713,39120106,39221069,38266735,41156193,41380618,708595874,172694546,275249116,171926524,437482672,313194557,647777271,194741763,127031435,95945558,102588304,99486138,87407285,105920063,98799154,110600484,106857994,96076190,102286835,108957040,100898851,268723507,125262741,100648811,95958249,99649577,109186795,88006871,121102300,3395000415,58260446,54221662,42305266,50641736,46720610,41838494,64977342,43473186,61771461,88005492,83135025,58923774,53086331,46104707,52070654,41661433,42174593,48520821,39415955,39248286,48428522,48532112,51882004,62590594,90472798,54813994,41882478,52843620,50305502,42184861,41218366,47745288,40678528,47042954,47800897,40621726,49650749,42161544,39001293,48679996,215387218,223459852,181035722,57434340,62489661,62978916,66905384,56509745,51443807,58914130,50957945,52148136,62119989,57830480,53385439,52580952,70869792,53601190,48224211,42270099,50317336,52028879,49225821,58144078,52871658,64232475,45425494,61096453,46148893,45540015,44176436,41734678,41755835,37621913,36134778,42265832,34018535,37454633,36091187,36007501,36586622,33856627,34905581,36993421,33934648,39686293,40152443,34820518,38301035,37817720,34773154,42327576,41749661,35235895,41988565,34106464,35909375,38884243,34777683,36021234,39036968,34730225,40243330,35025441,47158388,46579150,40922200,41101979,43297993,43393711,35740047,34118533,36972920,34163114,33626152,39130692,33902638,34868639,35233594
A1,ordinary_bulk_insert_8192,57540112,68538729,59077650,67174591,59714498,63277253,57677017,61904787,58904406,60969584,63417237,61848167,61732571,61951480,71601710,61409236,67802209,62667208,66421903,61638019,64541025,62984051,66289723,62310638,61720035,61287033,61778934,62264125,60610205,66432294,61438704,101144535,59856178,78821802,78078694,67828114,67257548,67431018,66555690,67241737,70793247,64686544,65682352,65433994,68957310,71364865,69095982,68895021,58274008,62650490,65491261,59323949,68464650,59977538,64837570,59309959,67266957,59382729,61455986,58921632,67026858,59472285,60848696,57494140,59896578,62515223,79053581,96396083,72041591,63238696,70949156,63184609,66751239,65902319,70317250,68234283,71126693,70474239,57075930,60739030,59422293,68980405,56780056,60126750,60235181,57509461,57780246,57264277,63980709,57547357,64886871,57100589,68859017,60128449,384200101,63874427,72916078,68782301,65874527,69105684,72550297,58141993,61472358,108172446,57874639,67092995,57281810,65843972,56604958,67567709,56594935,59753187,56973543,61074066,56773173,60187276,57089565,58669184,58561477,56786779,57568980,58403349,66571397,58190623,68069186,60469567,59910644,57967393,59400417,56458548,64538968,57754135,58227878,57776842,57349348,56623882,59476911,64469335,58434479,64222107,106395948,70407747,58193052,60974656,58765345,68359819,59613988,64153428,58305324,58265221,70364150,67632993,68914987,66068658,71947031,75055370,67267925,60692941,1828430525,70468635,69251387,69143666,68383899,58928552,59467227,68951654,61335484,69123845,59713469,67758626,59381467,65174696,60771806,63385125,57760189,114520675,58494999,60213377,58194782,56937333,71014470,58325880,66345380,56300941,75768300,56246968,61494101,61599109,62751353,57203039,61964051,58277399,62562820,65306328,57798957,64415672,76212981,73670313,70625765,66412682,64900150,70029814,63474373,57073365,57737011,66489120,58379845,65801057,58649049,69140046,56438512,63082368,62191803,118355318,58875924,66279079,57608160,63449390,57636974,59785395,1900258565,59002376,61490121,58810490,68174062,57526802,63133470,57836450,59812175,58691702,57822403,64193262,57517373,68917712,59869596,66861025,58184108,66268839,57676526,63567694,57619849,67895816,58789015,64724165,56859011,58794364,59219799,56650851,73760854,63927462,68636558
B1,pk_bulk_existing_8192,46011443,41214795,41125478,43120852,42484169,47537728,45339137,43729057,49150961,42900214,45270477,43062770,42472822,42312768,47425740,41815250,47302245,41742683,45525544,42665810,42425005,44327211,66649924,46309673,43161386,39747984,40426131,44378079,39701096,42953886,39587302,46892842,46262360,48242973,40188879,40061174,46771474,45215642,40388391,39716676,39908180,41096154,46309891,39525790,41401871,42550315,39040446,49981201,70296494,40142381,41475556,43258856,40194975,47171961,38841407,39336122,44055119,39909181,41235278,42406720,39794261,39821918,41621839,41412224,48231551,43449175,40165841,42206703,41217980,40167126,41335406,46802242,39870544,39719052,44885860,45888879,42172881,43714954,41120539,51888117,41795902,46700008,42713495,39453124,40669125,39877262,41326825,42230510,45005196,41629035,62601613,48487351,43452182,43178066,40728128,47748708,41556346,39709700,50548806,39291546,42141849,43874499,40796101,42619031,43769326,40430818,42014841,45363161,40097656,40483808,43670219,42402740,44598451,47486490,78467585,57299374,43333055,39887116,43907610,46703481,41437267,40527690,44577323,39186172,40453832,40001212,38792890,44327130,41638968,42366555,40163670,40695879,42594100,39331668,40142681,42174491,39860268,48232625,40146952,41148350,46854087,46397937,44279355,40844557,41506649,41560365,46427650,38869321,38906053,40322688,39092914,42108923,42266179,51953658,51882702,46931965,44558949,47519636,45618552,46786077,46924191,51194616,49530570,46914094,47504765,41168306,40052930,43806362,40408482,41778352,40519461,40413606,45657847,52274070,49535919,47207567,41832381,39740057,44858679,39938478,40097663,44286615,41008723,46545216,40335435,40517576,46579144,43960074,41916378,45618048,40440541,41272322,41187972,40581055,42160708,40482883,41685154,43524394,40985540,40418873,42301749,39574698,41021136,44254902,42186803,42612280,42065346,40189669,46963886,39862970,39426402,39493994,43384530,39451508,40208319,42617398,39623381,49291884,40323742,39795124,49374258,39461343,39063796,42518124,42706159,42826254,42888601,42291020,44403157,45539589,41794046,40427854,49116424,42618503,41080628,43136484,46990094,41022338,41453145,40738514,41143948,45566321,40678359,43848107,39492052,39185888,41303136,45196706,39515064,653060722,39853915
B1,ordinary_bulk_insert_8192,58095667,59263868,58628240,60952840,58485607,65424728,58325678,62459222,57612822,60945564,59156010,64369310,63214053,63453575,70446299,64348045,62314825,70108475,64102735,64398317,64452169,62325030,61272658,65482595,61939091,61039488,69214391,60401179,61930269,69073465,103836542,64172131,61041284,57958445,58067901,58318639,56973805,57996001,68725134,61454028,62011177,62314764,57862037,63241590,58181470,62790866,59769486,59735333,73477961,65802948,58154566,67160973,59051335,137830395,70142012,58227863,63540932,57926578,62469382,57622184,64256215,58856311,57950130,58783602,67395522,62163642,106858749,58625036,62256408,57603917,62114492,57800382,62134331,58818900,62126512,58646996,83061841,57856741,63920441,61109961,64205262,56402241,62105348,57336630,76046821,56480041,57734604,57679567,64136580,57986613,62010934,57459748,65125638,57504930,60661142,57633442,63369869,57742076,60493767,59595148,68895414,96972450,64228787,60647079,63203355,62060746,64001944,59414977,61749881,57738579,65331199,62126546,57397187,65842699,58489980,65064075,58760888,66461971,58664119,60702704,57634517,58757067,57089867,59952518,58426907,63139184,57661536,63601425,56999886,61313494,58967497,60339592,58542361,62127926,59098057,59420010,58704871,69246795,123011140,69200503,64342708,59000904,64445170,58256729,61742425,57626658,58107037,58872112,61089203,58289810,68822230,58862035,61599428,58142488,69115007,60728263,59851792,59819106,61369692,60525090,58874735,64609791,81609112,70808600,77973026,75013249,64749354,64422790,76559091,80366115,84609271,71564785,93121099,73164563,81574976,87360601,113927360,86775783,73477775,77679260,82990425,77728935,87193763,75328178,78650658,85067559,73753341,83195685,90156478,83023752,72984552,84597268,72081725,69404916,67069730,73392911,66584524,58364817,57062054,68575350,59899413,60563614,57509091,73040696,57847610,57262962,58498377,57269778,59719451,70795869,57254020,69667622,61108046,68710388,125592711,66385951,71532815,66876572,64536451,75400332,68880873,70787311,61913988,58668181,65418843,60000435,67479775,66174983,58910841,65123102,59758242,60012568,60781744,60040691,68073837,60487940,65106797,61174904,65985312,63876366,59743750,61726517,58714872,59031867,63266544,57444913,63823098,57299520,60425850,57651695,67292342
B2,pk_bulk_existing_8192,48990065,39635390,39744364,45596729,40153342,41340316,46454728,41705500,43090012,40613114,39819352,46000071,41814908,42923529,50874726,41387823,43195203,44359694,42555245,49603609,41675168,43551589,46590688,39445314,46710411,42718793,40768453,41808666,42804634,40803006,46896409,40006013,40320333,44170342,40212479,40351920,41540927,40459507,39533602,46700380,40401331,44612209,40405768,45968787,44169189,41147603,45222329,42641655,40740413,49682801,43019046,39156607,43352754,40720206,41305589,43402901,41594945,43375823,40542629,40023390,43730025,40804103,40448032,40188432,40370632,40489256,45748700,41290335,40273042,43372346,45261830,42239137,41207360,42172120,41160949,47577819,63838931,41798398,42170684,40693022,44737951,39142338,39931268,43500587,40996041,40220435,47500288,41432400,42207440,41643223,40396448,41823912,43142161,44708426,38902930,46878399,38729977,40695418,40455593,46288331,39214810,47323598,39586683,41545058,47675299,40675091,43795877,45407303,44714785,42316806,86056827,40466052,40989430,43321462,40815721,40996490,44108342,42640670,45101115,47799611,56154746,46186409,50094612,48762999,40144829,49390363,41400813,41389010,42947211,40954729,45915820,44908036,41639846,40621644,44362058,40254819,41355320,43912285,40741249,45194885,41367562,41389256,43834599,41097872,40419536,40326987,43078506,41062354,45234455,41617138,40925419,46772468,39781081,45010456,41411807,39307514,40526091,43467094,38768991,44042152,39288009,40088906,45516962,38765342,40697102,43330961,39709801,42977093,39807654,38676632,38312037,41590340,39011733,40271791,41216812,38904506,39954808,40978662,39550904,47822091,47475733,39938950,40398438,68271815,41058507,40211401,46184617,40294368,39074039,41386320,40385710,41980053,50539071,43811055,39163289,48004838,40870797,40154232,46081048,39921518,43154029,46496874,40502962,39638291,46754563,42137992,41734260,42510913,47879709,40285635,40468589,50539842,41536167,43825360,44772367,41475480,45007741,42197463,40079772,42244211,61583176,40360602,42626463,40849899,39305856,46594364,40421826,40038394,42454935,44372408,41296254,45767863,40455163,40806564,45626445,39635347,39829738,44465957,39782526,41014260,46939315,46788076,41038521,40560788,41678567,41267496,49366776,39616716,42006559,44291005,41368969
B2,ordinary_bulk_insert_8192,60880935,58702412,59756538,61021361,58737562,59043293,61891399,58057604,63443310,58928671,59069673,59055023,60884784,56899661,61130679,61258048,62143830,71428255,66387494,61988624,64326429,73391727,70240875,74547005,62897572,74103338,61830010,68762607,63325398,66685634,64014276,97552759,61194498,59281878,60515086,58871475,59495553,58382687,58723310,65947284,58493788,68258675,59323478,72710082,61248379,60537659,59866959,67064381,59194265,65420969,59229276,66143692,58582410,67089530,57296645,59644758,61420174,57839193,57405684,63996652,57679853,65589207,59439525,63702948,58186827,65014336,61443738,104496726,58614811,58860380,59678669,64546666,57999873,66706344,57682316,72385166,62169537,64747190,60345450,61802965,58055685,61122815,58376721,63632738,58546010,59493407,57140146,58324716,60169527,58006660,58629005,56694454,56736400,58451888,65240964,55903019,59583510,61893733,55207780,60216569,57223759,57924080,102224400,57811319,56979766,58078137,63200123,60357428,64326055,59931854,57127834,59159867,57559032,57315065,65936579,57628668,59236375,59104843,63532734,59205185,65976088,61446580,59138255,59475672,58024305,58038824,66840167,58029724,66183786,59730928,65493585,59089455,63814564,58445165,65724289,59728113,58562218,58667184,70691672,64496104,101841961,60056070,68896202,58615455,67351579,59428435,64780393,62176951,59659418,60989313,66817892,59418376,68063386,61116019,70110667,59119207,66982701,69726199,62847089,59074775,65035340,59564130,64787520,65473257,76394239,59152245,64521782,59319864,72536997,59309743,62269970,59090245,66176940,60172451,64546559,59400451,63336689,63726797,126639753,58355978,61859736,60016233,62982152,59661893,64475603,58499470,65308185,60553141,62894837,59436268,59404142,58787688,63771277,57749019,58987948,71881311,58976155,67536054,68641437,58130533,61158044,58884565,58810550,58321050,59214120,65556502,60142767,65149404,59799004,68079414,59133670,58266541,59471889,57986133,57910279,77345615,61963789,114131282,58264028,67745568,58101652,62751128,79011008,79133163,65992691,70462646,72324643,59066337,60058735,63189655,59981117,63248766,58777984,64701335,60585055,59247492,61090938,59610394,61425694,66848722,59219580,69375749,59631895,66160613,62595650,63526108,60076026,64818870,59278707,63361186,58834719
A2,pk_bulk_existing_8192,98962612,70071877,49740269,41828702,47809255,47137769,42092137,48621801,41792282,41470929,45120806,41392507,40662626,42613342,41515755,85177889,92381653,85529825,50454650,50992544,72336263,48585301,48085359,46685272,47477763,40483277,41804756,43838840,44266161,40164787,43126876,79672293,105642762,49077663,42130418,43573048,49737876,59436897,45431154,44496109,43523409,45336397,41974251,44222837,43601690,70582582,40734961,89248815,45701376,46058057,49832659,41675147,43439380,42736030,48580938,39721753,40003083,43159662,44141014,40204049,42603646,40525450,38405801,39575869,38225787,40461120,39957794,88677602,45080455,50809486,42964610,68183526,41602734,41154915,53590637,43577121,41090449,48939979,41806498,39195196,40322212,43532850,45575065,39773777,50881369,41338064,40413007,47613891,41509500,51641062,39490408,39777390,60120537,41266135,42964346,42668104,46507931,49310946,42433121,52689349,42438512,51816459,46074998,46774674,41377890,54123045,43963463,47358828,46239858,40933686,39738311,41131537,58156556,39228248,44136269,42202221,40494997,48641471,39602569,43643198,41846876,837283818,345242283,5299037756,1069854622,47202122,49798768,46336112,39120449,42082754,42231057,39583785,49556395,43438454,40422038,46086170,67081681,44900163,41641383,50349116,44375301,42788206,39209675,37911077,42475999,41378162,39309022,46904606,39937470,40908027,42588324,43029860,44882534,46065454,39429250,48348484,48011196,38588738,36369825,42128760,41240622,55228887,40736689,38368706,37987098,42040030,37347864,38140663,71522890,44113236,52488500,45665657,38866473,39944298,54889765,95817589,93662601,103952526,110658849,110506399,91435240,106091913,45717601,79960353,48053521,40333975,42320259,42300877,38392475,41892457,44600394,40964776,44137388,40977263,41929526,52026854,44745865,50409291,54812543,45282338,39383191,40416976,43098409,73326505,39596450,53218859,45368213,42741405,42947149,41691821,38116113,44852570,45594268,59678452,47421654,42817910,39972322,44740026,42305689,38373196,74915986,48957341,40419295,102968414,70795726,43124419,47412312,42076286,38750527,51414602,40666395,39592011,40557016,47782452,46810190,55028113,43566312,39474115,41887889,44046232,76479769,44314230,49368232,49568918,45504809,43941528,38636935,41268107,45311045,69630572,45427579
A2,ordinary_bulk_insert_8192,85424475,79766344,66427437,73437297,66877105,71720562,67850679,78895190,158580954,87062698,72310436,75954062,70207802,70061624,69285043,1570204595,1580589775,444370115,4376905228,7483730786,92693182,135571025,90127188,83417885,93102953,89252105,95182860,85031170,82207830,82450956,81997812,85295189,69343510,92194860,86965257,93065927,90248003,93256820,93123415,79386697,74470596,76244063,75140048,81057660,70418831,68846543,80323472,72463034,81070810,68819666,76921705,77562579,88241462,78270468,86818592,143411827,83815831,81144791,79490819,82489926,78192183,71707990,72950213,79743839,72666352,74185409,70097352,78147836,67651725,78697559,67929221,78101000,71259183,67752127,70999380,73162749,67640524,74764478,84088196,65231537,80674199,68878429,73589847,67714724,70851927,68960367,93817417,79864034,77193938,75827972,80478077,85213644,135201797,70247151,71197416,79041653,70697507,74090635,68585440,77901589,68405992,78340474,71851964,73102216,70706417,76258419,73394523,72203906,69600429,69065600,72350336,65594564,77100735,66633907,76435519,67641058,74645483,70402598,73780605,387915568,57752948,63404830,57603533,66689270,59190085,62690801,57257957,110260499,58298682,61396421,60386167,63652687,60203073,70018829,57870459,61943140,61184262,63621204,59169845,65597575,58675072,66046820,57910469,65840250,58416380,68161277,60416342,59671802,64259804,62333400,70603797,62217823,64680205,66622399,69724191,61719996,64538294,63757765,67502904,61181784,70194534,60622558,64752417,61051152,106535619,62710645,65466983,61366537,67355618,61000545,67304383,61838435,68402056,62432848,63885366,67089338,66310165,72688055,60767208,73541853,64805142,73723179,69175089,69366551,70930032,70178827,82429348,66612316,64568877,124501124,87139956,66869722,67376242,72441225,63620734,73262348,66550196,65706272,62217593,66726506,64308453,68935703,109521818,66729111,62702998,65486604,63839835,63136101,71592150,62351611,67696642,64277124,68444198,62907043,68529075,63784324,70975301,62224026,63896502,63718440,74989293,80449184,66319560,72549336,63819025,75813365,66677928,64189853,70640587,67058314,79086495,65814617,68732717,66010107,72410525,64187066,311588013,66463829,64936751,117262996,63458188,59246570,59582408,66896504,57315715,67598984,58434066,65109557,59642617,77663843,58962398Six-process optimization comparison, raw Exec durations in nsAll values and their acquisition order are retained in this gzip-compressed CSV (base64). Decode with Time-blocked comparison, raw Exec durations in nsprocess,workload,ns_1,ns_2,ns_3,ns_4,ns_5,ns_6,ns_7,ns_8,ns_9,ns_10,ns_11,ns_12,ns_13,ns_14,ns_15,ns_16,ns_17,ns_18,ns_19,ns_20,ns_21,ns_22,ns_23,ns_24,ns_25,ns_26,ns_27,ns_28,ns_29,ns_30,ns_31,ns_32,ns_33,ns_34,ns_35,ns_36,ns_37,ns_38,ns_39,ns_40,ns_41,ns_42,ns_43,ns_44,ns_45,ns_46,ns_47,ns_48,ns_49,ns_50,ns_51,ns_52,ns_53,ns_54,ns_55,ns_56,ns_57,ns_58,ns_59,ns_60,ns_61,ns_62,ns_63,ns_64,ns_65,ns_66,ns_67,ns_68,ns_69,ns_70,ns_71,ns_72,ns_73,ns_74,ns_75,ns_76,ns_77,ns_78,ns_79,ns_80,ns_81,ns_82,ns_83,ns_84,ns_85,ns_86,ns_87,ns_88,ns_89,ns_90,ns_91,ns_92,ns_93,ns_94,ns_95,ns_96,ns_97,ns_98,ns_99,ns_100,ns_101,ns_102,ns_103,ns_104,ns_105,ns_106,ns_107,ns_108,ns_109,ns_110,ns_111,ns_112,ns_113,ns_114,ns_115,ns_116,ns_117,ns_118,ns_119,ns_120,ns_121,ns_122,ns_123,ns_124,ns_125,ns_126,ns_127,ns_128,ns_129,ns_130,ns_131,ns_132,ns_133,ns_134,ns_135,ns_136,ns_137,ns_138,ns_139,ns_140,ns_141,ns_142,ns_143,ns_144,ns_145,ns_146,ns_147,ns_148,ns_149,ns_150,ns_151,ns_152,ns_153,ns_154,ns_155,ns_156,ns_157,ns_158,ns_159,ns_160,ns_161
A1,pk_bulk_existing_8192,579524246,451446735,340653357,503196454,391938771,523758652,395243454,466581940,555500235,243012527,570998898,518119320,600520408,414227448,1483142614,328216261,629437876,466600328,320202889,425061526,284169279,492717981,520488104,316873486,329884934,1578469037,282715890,282249088,1563351056,513410484,209248498,772818252,164035986,289526524,153239055,360314258,169683859,162853217,346797844,546740617,403263223,227366934,42106406,39639451,55045712,47247130,45670595,48897998,44678000,46272191,63066409,46038097,44562767,42246263,41300436,44449512,45456576,40801154,45796875,41922388,48991900,42056741,45461034,63890763,47983390,56835643,53799792,57862640,55676301,39705338,34734944,50314738,36640932,43914246,46836891,43995763,47328403,45414742,45589758,37188368,37164169,47057234,52564455,35271787,37551637,38144622,34667964,47129565,56114384,43365618,39851921,49026767,40842250,51715248,45945996,50790905,50100581,42220575,40456869,40956430,35548565,36137932,36569198,52203210,47257083,42923109,35156275,39486878,37766084,44133027,40743768,46360075,48606296,49266938,33333256,37738766,36695480,41779391,275670083,46957604,37381762,41015802,33637647,39676884,38967589,37216678,42187696,37547895,35776912,35636545,45994984,36510261,35488221,36351377,43812498,40605832,47024765,38054979,36895373,37512012,40579513,41477193,37174096,37688683,35461948,45992633,60111581,35414396,38318919,37693950,34254794,40007205,35456579,36086491,44795363,38759458,34591912,35535615,44450251,39936243,35076667
A1,ordinary_bulk_insert_8192,71335647,64157320,67139765,61231585,70485174,66999753,71046017,75582129,72015749,63949726,63761340,66908933,64986532,64001251,69890537,65489329,66509717,79696047,76623548,63621743,63935366,63883656,154160020,63361998,61162925,59097366,70617064,61469553,61103707,68886943,62591168,62240015,57423743,62531085,60290351,67619173,56026116,68760752,78164043,65049469,70019575,71934285,59451039,59505992,60423874,61296771,69953368,59036766,64970258,119435771,74251831,59864651,62470570,59967089,59345258,63362046,83678496,68644565,87304321,92367628,85412526,82653923,159437511,74818399,75109025,463322857,68075046,68146608,74645027,86920284,70989833,73850811,82389308,79963251,84457964,70843959,73152571,139999358,63584172,76748400,69607028,66416136,67882722,70298375,64781865,71697334,177364139,171595446,67739061,72449179,81724551,71599941,67885586,72892568,71004136,67952407,61856583,74881366,70093977,84662806,77785353,636047334,287829105,596630809,491855582,316820851,69192229,59908310,59468406,71670449,66242701,61050605,62801127,66906420,66109407,60734475,65196752,78224389,60819789,59727467,62846441,78470650,71225204,67967658,70373805,72853904,79653861,76805805,83049396,123066367,84529840,94746628,96716595,76165100,80648132,91123824,103365041,140033238,95009055,85116661,81293419,105990919,100901653,101387148,80920395,95447272,82972085,83863993,99576427,78834505,81122725,115457527,95863412,114923242,84023139,102387760,86862137,189050502,78145854,90170570,74868077
B1,pk_bulk_existing_8192,337902393,514696480,290956194,524616290,343733007,320130813,414815868,387577836,715968582,413821794,106206612,735270271,296702151,428417523,549892725,2448786931,423905046,361722917,396288265,293507093,275605264,461353772,334106991,377376907,218686987,274593329,277518757,262420562,149736716,245644245,1429309559,504090184,180779889,3066270085,199374869,393198536,492942572,614407377,454530753,163884585,1313687693,428279738,115463331,52005737,48328118,43755856,49211505,50552183,51143597,56626850,53113144,43237006,45740121,48120014,673652618,50388975,62341379,49083438,52979762,48819976,47520733,47562367,52159157,97698596,54657491,63949201,66378543,61236162,48967681,51297398,46500518,39593249,48985642,57654318,57168063,50810640,55106441,49144180,63551869,48467006,56769391,48505822,48092841,44481222,44139736,41901170,40023464,47678664,51847876,41340733,45187051,65678442,44779944,49417763,47657066,51377610,42546502,45561110,47199740,40575782,40566783,41897253,42174517,44071677,54810372,47876380,42127388,41505051,43456261,40514208,39089443,44462036,47873703,39404300,41478523,42517100,49916327,40498193,41374240,50515256,51600871,40803428,39561641,42633791,42199031,45222050,41425997,41900357,42340415,46321490,49229738,45900286,46237122,429665826,43260058,50943599,51309278,40868488,42866789,41442566,40756990,50388880,41514718,41126536,39505082,59589438,54602053,45368894,43831959,44253782,40651122,41086652,43776373,42696250,41592001,41588434,48604806,50547917,46472876,41092770,40222896
B1,ordinary_bulk_insert_8192,74113537,67880530,69999550,61139597,76289265,75294502,76141127,65101735,69139717,70826212,63293249,64252298,73504330,62431491,68984796,81785611,64182693,70923039,70354176,64646770,63266747,63635335,69116203,65446300,60621524,61695006,58391488,65738809,57188268,58530109,62846407,61196811,60097420,59726290,59345570,67461201,58034639,60425587,65741379,67644579,73973319,70486510,60096389,68196132,58142488,61225962,66955298,64602768,61327703,66359593,76773425,72995661,73611915,61638047,61556606,66138824,68319374,73341471,77616381,76814143,74291751,71955414,87869923,75958345,76115022,68502189,67332094,71475939,76778738,71766938,71400026,80698123,78253774,72875767,73024883,74346301,113753487,68937133,66092782,65908966,72149055,86066290,66512634,78592868,73176352,75210677,277878567,184168231,70105032,63697061,72297588,83340557,66450206,67093014,81691595,67876088,63179264,59786448,73141513,72017925,91259143,1776261542,182325638,457061787,160580973,177645313,154224274,61627312,66414717,59695884,68124963,64077283,59068333,62683941,71904129,64149957,74323720,72905913,63778905,70788419,72988671,72543505,77041994,74822779,76740752,69160088,74979742,73060162,81657755,119478234,75447745,85837966,81892779,77932072,87240806,87648242,99791921,150321877,86429807,98330905,81020954,92214548,91429644,146454449,87889969,79832753,135868748,91714189,85742744,87914784,75186750,81817892,102605708,76337054,225529093,91680737,133948671,256669243,79684074,76483192,72214569
B2,pk_bulk_existing_8192,401949133,428672336,324186006,450727411,448321353,367993939,380678402,485151269,374548682,348764552,537218754,291684422,469065837,353606066,626803969,335665228,358390428,474381787,921316530,476296555,209894773,376641461,426633554,828411117,358242085,525920331,311709890,468445747,312108879,272990685,260472046,519491922,427112521,180148229,1451337006,437590534,743651708,138752213,1203884322,187110055,510197836,467580246,63392846,52937700,49219268,46661350,49595725,48974411,61304658,47264025,50682846,52349112,49321211,66719908,50400066,47185963,54214035,50389033,54450352,45130043,50419232,52453430,62908897,69416557,53743619,101243999,56504070,63258348,66982527,46303728,41617170,41921705,41686776,55744823,60295945,57439048,56962075,48843084,48487718,40140673,43151238,46520374,48512136,42142900,41104439,44103323,40725820,47367055,44831924,43651269,63486905,89047862,46713563,47325956,49936859,47537268,56515237,44473355,41841420,45987498,39996040,40169103,41632971,40998250,47155287,44529845,41363907,41880056,41178755,42721480,42596817,55716389,46516745,41857568,40592028,42262345,41804690,42802419,48976056,46122433,42983101,52667970,40658046,43197467,41084002,41706478,41934561,46387525,44365519,42982841,45294032,49587587,46149954,40807333,53199931,44313442,44440663,48328183,43407528,44758588,41113355,41429848,40329168,44264206,43711374,51087150,50384356,40443200,41804616,47208438,42814223,43005419,52925096,40404945,40529079,47307867,44455912,54262597,42001774,40070495,43864592
B2,ordinary_bulk_insert_8192,67644567,66438717,79832201,63482832,61104102,60882580,75240373,68944552,61544561,62844182,65606625,69960330,62272569,62125316,63572527,62292411,67113019,71603199,66191058,66096817,76267627,63370711,77422237,114595217,60317279,61444435,60258374,58741823,64564025,67899415,61011322,57541849,60490981,58774816,67536572,63630254,71971340,64174297,73570981,73622410,68596686,68465854,64144531,61409459,65643545,66014709,57373245,58254527,63751126,78573975,64563343,66937743,111023670,58533007,64003404,71559054,76575449,64353960,70351779,67062831,159486513,83877305,138008386,80282809,85065765,69675608,70740945,70830597,93982761,69894944,69703548,69548102,89487483,67403264,65753624,64217500,68573816,73421486,75439935,76041588,148702455,66319294,90417231,66869303,72620429,79463123,154859231,174484291,79502044,71246339,78918687,73558153,82893647,84146425,64213801,63712352,74388159,65967652,73581826,76513632,87478327,228669562,327969221,226556257,374621773,244655870,66053509,59295271,68344080,67479622,61906556,64039411,93166226,64924656,59343640,62969332,69493992,74773416,57365572,57742824,65299134,77043351,79510071,71489253,68661991,80584526,86994195,73577767,79586646,74090735,111432956,82839552,180760128,82500892,95110489,87605101,107609718,95915707,146776309,79259852,92491353,91872309,93752726,82181464,84561101,76146826,91896884,74233872,89935730,71526336,165935491,106662963,78764174,100761852,77745445,85261245,87963460,78592528,79086387,152336175,73504069
A2,pk_bulk_existing_8192,362814633,763628623,374835806,335621915,375488954,280609060,704792284,516899957,435135882,617821635,764128773,813598579,411961011,1667422825,375929611,771625918,541637469,325233398,279825286,1560257225,432821989,385110179,252291767,764969909,269800888,237198001,296755548,349420169,309446863,427065645,734552307,392206883,241670247,347630277,562927933,4131757265,327944267,254521434,472119137,1380771455,436460707,482566789,57435724,43650295,48544091,44486124,51285634,44550411,46982498,43853287,43333593,41701562,48834346,43272175,38373449,45224825,46618132,49219555,45796161,53221983,41748914,43348482,42640011,52735626,57618077,57125399,58651487,54166716,45095354,45737151,47124943,41498586,38922320,52835779,50646015,46901899,46324945,54336360,45416737,44904088,34019413,45230245,44643328,51176380,38338359,35085377,38065632,48834785,39922057,35383701,40023262,51316665,41804372,61286321,38236098,44164660,52358508,42513524,40831657,38198611,36968621,37822864,39191560,35700346,53928018,43288433,40153224,38272948,38886096,40264086,35229036,34322994,42372135,33934566,37843835,40222163,79942329,38417540,38852607,44037310,34740871,34150078,41726915,38549200,43928078,40915499,36013671,36240585,35323541,34255685,43947597,43401734,35736326,35315889,34506431,44502858,44560933,35643771,41634611,38606326,36175137,42668420,34597748,36576025,37075627,43921970,49039867,35074193,34776808,35103910,39691432,37399969,40268105,43309592,36280190,33786726,36611778,41381741,53632830,37080564,39202248
A2,ordinary_bulk_insert_8192,60117019,72995700,66070640,70706541,62463523,74995145,77456342,63110830,63004147,74466281,66500378,62855432,64228530,64926560,64178536,70563094,69287407,75237318,67342633,68842437,65339805,62299372,91716482,62341511,62010824,65103492,62443734,69818742,65984083,60749673,58453072,62753468,73519445,60858773,62504741,79588057,65501088,58081514,58951224,80971211,75020952,79798246,61286257,72154332,70911263,59328413,58050693,69378864,70642961,131358613,61620625,65608356,66149690,63633407,63046232,64456045,73474948,68257901,73776052,78342391,82239851,78861589,86397799,158613000,72204879,62678923,61755916,68656869,87733086,72922027,74615025,67494300,79221213,71763292,62777026,73642522,112328052,65594628,64558012,66538854,70574973,73217849,79377279,96703786,72590178,215267338,216232664,160158957,72388881,62682498,66442647,85803249,73889629,77779465,65864723,78608814,70364090,60868874,75953866,81593887,90534983,190307733,169351580,276988620,325789880,287657880,73635448,59395727,66146720,58866364,63317815,67995993,69003222,69036676,63290340,72138439,71618099,71978399,73758966,74420295,79440781,74397448,77610557,65229599,75811494,78741428,80612444,71475524,71359198,75148551,74837309,100850654,86769028,79606225,97153394,101619805,93706935,77828444,81857566,89024266,107849332,111489108,109638618,84708576,74619472,80737745,118429490,85473650,92670365,126052811,79259576,85072753,76792461,262238614,165793146,88299859,91928039,122130852,85538909,68144845,67530145Reproduce the time-blocked experimentBoth builds replace the same benchmark file using a Go test overlay generated from the following diff. The adjacent commands for the sequential experiment apply with the appropriate overlay on each checkout. In a short, private working directory on an ext4 data volume, place the two resulting executables as --- a/pkg/tests/dml/ordered_odku_benchmark_test.go
+++ b/pkg/tests/dml/ordered_odku_benchmark_test.go
@@ -18,6 +18,9 @@
"context"
"database/sql"
"fmt"
+ "io"
+ "net"
+ "os"
"sort"
"strings"
"testing"
@@ -72,6 +75,26 @@
b.Fatal(err)
}
defer conn.Close()
+ gate, err := net.Dial("unix", os.Getenv("BENCH_SCHEDULE"))
+ if err != nil {
+ b.Fatal(err)
+ }
+ defer gate.Close()
+ if _, err := io.WriteString(gate, os.Getenv("BENCH_ACTOR")); err != nil {
+ b.Fatal(err)
+ }
+ exchange := func(request, want byte) {
+ if err := gate.SetDeadline(time.Now().Add(2 * time.Minute)); err != nil {
+ b.Fatal(err)
+ }
+ var token = [1]byte{request}
+ if _, err := gate.Write(token[:]); err != nil {
+ b.Fatal(err)
+ }
+ if _, err := io.ReadFull(gate, token[:]); err != nil || token[0] != want {
+ b.Fatalf("scheduler: got %d, want %d, err %v", token[0], want, err)
+ }
+ }
// This process owns this unique database. No other test's data or cache
// is removed, and no table grows with b.N.
@@ -197,11 +220,14 @@
b.StartTimer()
defer b.StopTimer()
for range 3 {
+ exchange('R', 'G')
reset()
orderedODKUBenchExec(b, ctx, conn, statement)
verify()
+ exchange('D', 'N')
}
for range b.N {
+ exchange('R', 'G')
reset()
start := time.Now()
_, err := conn.ExecContext(ctx, statement)
@@ -211,6 +237,7 @@
}
elapsed = append(elapsed, duration)
verify()
+ exchange('D', 'N')
}
b.StopTimer()
// Report individual samples before sorting: -test.v retains theirSave the following driver next to the two binaries and execute from pathlib import Path
from tempfile import TemporaryDirectory
from contextlib import ExitStack
from datetime import datetime, timezone
import json, os, socket, subprocess, sys, time
root=Path(__file__).resolve().parent
native=Path(sys.argv[1])
labels=('A1','B1','B2','A2')
orders=('ABCD','BDAC','DCBA','CADB')
def health():
return datetime.now(timezone.utc).isoformat()+"\n"+"".join(Path(p).read_text() for p in ('/proc/loadavg','/proc/pressure/cpu','/proc/pressure/io','/proc/pressure/memory'))
def take(sock,n):
data=b''
while len(data)<n:
part=sock.recv(n-len(data))
if not part: raise RuntimeError('driver disconnected')
data+=part
return data
subprocess.run(["sha256sum","-c","manifest.sha256"],check=True,cwd=root)
env=dict(os.environ,LD_LIBRARY_PATH=str(native/'lib'),GOMAXPROCS='4',BENCH_SCHEDULE=str(root/'coord.sock'))
proc={}
with ExitStack() as stack:
server=stack.enter_context(socket.socket(socket.AF_UNIX,socket.SOCK_STREAM))
server.bind(env["BENCH_SCHEDULE"])
server.listen(4); server.settimeout(150)
for label in labels:
name='base' if label.startswith('A') else 'final'
cwd=Path(stack.enter_context(TemporaryDirectory(dir=root,prefix='cluster-'+label+'-')))
tmp=cwd/'tmp'; tmp.mkdir()
cmd=[str(native/'measure-exec'),str(root/(label+'.time')),'taskset','-c','4-7',str(native/'net'),str(root/(name+'.test')),'-test.v','-test.timeout=20m','-test.run=^$','-test.bench=^BenchmarkOrderedODKU$/^(pk_bulk_existing_8192|ordinary_bulk_insert_8192)$','-test.benchtime=161x','-test.count=1']
logfile=stack.enter_context((root/(label+'.log')).open('w'))
(root/(label+'.start')).write_text(health())
(root/(label+'.cmd')).write_text(json.dumps(cmd))
proc[label]=subprocess.Popen(cmd,cwd=cwd,env=dict(env,TMPDIR=str(tmp),BENCH_ACTOR=label),stdout=logfile,stderr=subprocess.STDOUT,start_new_session=True)
try:
peers={}
for _ in labels:
conn,_=server.accept()
conn.settimeout(120)
stack.enter_context(conn)
k=take(conn,2).decode()
assert k in labels and k not in peers
peers[k]=conn
with (root/'schedule.tsv').open('w',buffering=1) as schedule:
for cycle in range(2*(3+1+3+161)):
assert all(take(peers[k],1)==b'R' for k in labels)
sequence=[labels[ord(x)-ord('A')] for x in orders[cycle%4]]
schedule.write(f"{cycle}\t{','.join(sequence)}\t{time.monotonic():.6f}\n")
for k in sequence:
peers[k].sendall(b'G')
assert take(peers[k],1)==b'D'
for k in labels:
peers[k].sendall(b'N')
for k,p in proc.items():
status=p.wait(timeout=120)
if status or '\nPASS\n' not in (root/(k+'.log')).read_text(errors='replace'):
raise RuntimeError(f'{k} exit {status}')
(root/(k+'.end')).write_text(health())
finally:
import signal
for p in proc.values():
if p.poll() is None: os.killpg(p.pid,signal.SIGTERM)
for p in proc.values():
if p.poll() is None:
try:p.wait(timeout=10)
except subprocess.TimeoutExpired:
os.killpg(p.pid,signal.SIGKILL)
p.wait()
Path(env['BENCH_SCHEDULE']).unlink(missing_ok=True) |
|
Existing-primary-key update performance at The previous PR revision took 49.22 ms at p50 against 44.85 ms on Direct incoming-column assignments now copy a prefix of independent, changed snapshot rows by column. The existing RowID index still resolves repeat targets in input order. A dependency or a row needing general expression evaluation resumes the existing scalar path. This changes the action owner only. The statement still locks and writes through its existing SQL execution pipeline. Direct release comparison. Each version ran in two independent three-CN clusters. The four clusters took turns within 336 balanced time blocks on the same four cores. Each process measured 161 executions per workload, giving 322 samples per version per workload. Only the MySQL Exec was timed. Before each execution the driver reset the table, and afterwards it verified the stored result. The scheduler, SQL and release binary are the same as in the previous direct comparison.
For the existing-PK case, both versions meet the 5% median-spread criterion. For the ordinary INSERT control, both versions meet the 5% median-spread criterion. Maximum process RSS over both workloads was 1.59 GiB on release and 1.59 GiB on the updated PR. These are shared-host measurements of two representative workloads. Separate three-version diagnostic. Two independent clusters per version alternated within 208 balanced time blocks, with 97 measured executions per process and workload. The updated owner was faster in the existing-PK case in 86 of 97 time blocks when averaging the two processes per version. The previous PR's 6.48% median spread exceeded the 5% criterion, so the precise improvement over that revision remains uncertain. Tails varied across processes, including on the ordinary INSERT control.
The owner-only microbenchmark measured 7.63–7.73 ms on the previous PR and 2.24–2.26 ms on the bulk projection, including Prepare/Call/Reset. A separate route probe confirmed the SQL fixture consumed the full 8,192-row prefix. The diagnostic instrumentation was absent from the timed production path. Correctness. The owner race suite passed 163 tests and subtests. Public embedded SQL passed 106 tests and subtests with the race detector. Six repository BVT files passed 1,264 checked statements. Six additional bulk SQL fixtures checked existing rows, repeated keys, no-ops, 512-byte payloads and fresh PK inserts. New tests exercise conflict priority, a repeated RowID across batches, change then reversion, a later NOT NULL failure, allocation failure during copying, and Reset. Configured static analysis passed for the changed package. The previous comment includes the common fixture patch and four-process scheduler. Apply it to the benchmark at Direct release comparison, all Exec durations in ns (A=release, B=updated)process,workload,ns_1,ns_2,ns_3,ns_4,ns_5,ns_6,ns_7,ns_8,ns_9,ns_10,ns_11,ns_12,ns_13,ns_14,ns_15,ns_16,ns_17,ns_18,ns_19,ns_20,ns_21,ns_22,ns_23,ns_24,ns_25,ns_26,ns_27,ns_28,ns_29,ns_30,ns_31,ns_32,ns_33,ns_34,ns_35,ns_36,ns_37,ns_38,ns_39,ns_40,ns_41,ns_42,ns_43,ns_44,ns_45,ns_46,ns_47,ns_48,ns_49,ns_50,ns_51,ns_52,ns_53,ns_54,ns_55,ns_56,ns_57,ns_58,ns_59,ns_60,ns_61,ns_62,ns_63,ns_64,ns_65,ns_66,ns_67,ns_68,ns_69,ns_70,ns_71,ns_72,ns_73,ns_74,ns_75,ns_76,ns_77,ns_78,ns_79,ns_80,ns_81,ns_82,ns_83,ns_84,ns_85,ns_86,ns_87,ns_88,ns_89,ns_90,ns_91,ns_92,ns_93,ns_94,ns_95,ns_96,ns_97,ns_98,ns_99,ns_100,ns_101,ns_102,ns_103,ns_104,ns_105,ns_106,ns_107,ns_108,ns_109,ns_110,ns_111,ns_112,ns_113,ns_114,ns_115,ns_116,ns_117,ns_118,ns_119,ns_120,ns_121,ns_122,ns_123,ns_124,ns_125,ns_126,ns_127,ns_128,ns_129,ns_130,ns_131,ns_132,ns_133,ns_134,ns_135,ns_136,ns_137,ns_138,ns_139,ns_140,ns_141,ns_142,ns_143,ns_144,ns_145,ns_146,ns_147,ns_148,ns_149,ns_150,ns_151,ns_152,ns_153,ns_154,ns_155,ns_156,ns_157,ns_158,ns_159,ns_160,ns_161
A1,pk_bulk_existing_8192,38398059,33410721,35588183,37491104,37102170,40016643,39344477,39883860,40471879,48407178,519540470,38749504,69549537,83493102,67088382,44435259,43357734,55322043,54089742,76793580,52312605,41851644,46302703,43963820,79707547,44220762,71523947,99792755,83465803,94009460,91370747,44271106,55277384,62987028,43290991,59413338,58858313,48196533,72869867,578620604,304439225,1449966896,54953948,54569805,65685694,52505674,59748338,40572835,49436601,46381016,51419493,45293854,51742979,69248347,40860669,48706278,57102268,51361981,59957022,40637109,47255411,576505007,124812463,55331843,48431380,45169399,39687151,34520412,35759000,37650783,44978046,46350426,47860129,52079990,45440686,62067555,50564845,44927437,65081812,53134552,72055187,45704543,52762750,57010472,55400920,40111287,206825471,47516731,53080342,48318192,37157003,35214766,43146782,41391825,39914772,43583201,42166853,54932619,45497419,46754190,54984118,52863587,46691133,44813708,57292563,79986803,52567707,48697521,51618189,36404515,39031052,46726808,52372024,48800037,52812623,46642240,38066169,40007248,47821089,46066796,45239957,43863308,42052604,43456058,36374261,47851744,45871734,46382457,40156320,43082572,47820665,43400603,41946912,41388318,41856290,45566577,51642145,46579057,40538615,36963078,40320419,36340552,37783631,43507870,45948036,48935559,35573018,36246126,39800777,37539007,44297145,35844309,38619855,38303749,33956792,49563779,47186385,36735125,41655049,47153075,83594087
A1,ordinary_bulk_insert_8192,64651428,80621257,70932339,64332635,65098110,73779551,70754037,68376422,70355041,81177925,72657632,66985933,66117570,64113742,63853739,70014426,75259140,64738634,61140383,72066677,67651883,61989044,71952178,63935701,184548345,64234445,59167394,59215844,68072183,59377556,58098546,62565246,59167629,59048851,61630642,61972264,62864787,58975156,61122324,65128061,65859608,60162947,76302261,65469778,69659446,67408153,70081726,78142545,74707269,69228590,102198885,77285675,74600660,133345511,75961609,91281013,74757040,76645743,76415995,105690846,76281998,73515210,66398917,62920959,62803004,71170009,68353048,79181878,73691325,72569944,73582394,69964774,79564727,73906440,60620801,70851132,75014579,65017618,59305040,70456380,67241188,107651759,61252281,61102629,60062127,60912012,63988482,61451670,61316511,69026571,64882186,60441923,59623803,68170493,67920843,70499032,70496750,58344443,59958960,61396516,62007440,58330593,61393326,64266245,69860261,91099454,69941211,70320059,73513153,68388004,142459800,77118713,71814504,73519658,68254417,74649411,62324108,67934418,79712215,76229537,69459161,83133952,62720972,78453464,75453171,71688430,65679011,70628243,73191902,64839895,84224108,96026576,74767768,78423857,79109677,81418674,65700040,69242015,123973496,72052845,72950298,65058085,65742717,68459366,65776235,63767264,59233653,67185647,62332023,58763347,66338607,64612129,62820232,77172909,61021145,76782392,63268043,60458449,58996885,65751602,75056027
B1,pk_bulk_existing_8192,34480751,32805879,37069400,34787735,36100452,37277685,35418864,38552164,37336014,46250679,38883461,51624060,36321033,62739945,72517019,58450450,56753381,54903759,41474978,49126092,53134463,52622797,68293387,46164791,49888717,47879119,49583867,72899194,77497398,90048451,63735162,43438159,54505959,53917200,44308995,48460998,53237232,74324311,49267715,184346650,2844046920,92499289,76030592,57318774,55348490,52836311,52474575,38986319,54834767,3661019254,100867812,42412322,51495168,56604767,73502422,45150899,40324875,43090950,53628346,47320775,100855442,2863329139,4318551505,42364333,36789004,33464222,37414695,36208882,48197225,34293265,34119858,42836189,70219065,50315670,50175432,1737593782,38215664,43165126,39521365,45965876,48284156,51607478,46648818,43642437,48743673,47128029,670335768,1372770079,53046437,46035290,36800804,33931741,36954181,36193150,37907639,37261893,46688717,59485929,45309885,53481918,46940162,44984616,39773920,42254360,41521948,37647605,36460569,44632504,37937455,50226639,35409711,45662364,45501885,41016480,35221255,37295554,38440837,37743975,42234290,41390545,35148026,35212257,35394367,37234674,34908776,39447608,41973887,49131210,40302419,38196293,38926282,46861197,40524272,38659370,39433826,43776751,57750199,45529116,43162538,36763726,39994713,34280447,34275259,37572647,40788526,38318753,40325934,41062092,35253172,33200287,34167288,33686420,39356301,35259229,34096127,36757625,41914391,34822159,36533710,43943947,41674405
B1,ordinary_bulk_insert_8192,65117766,75012384,73351715,71468385,69151614,65036302,86499821,74275364,71484541,66505070,96782365,63828894,71351517,73164276,63958054,62713030,67150276,78552891,62523765,62653933,66912228,71687247,73263414,67735011,65300433,64789281,63220801,61544137,63784017,59142443,58884327,57811272,59479751,64596817,67225188,60146779,66739318,65581691,60461041,62970768,67556285,72571734,61365480,61544185,67269738,65097823,66747777,69321214,72803288,81436820,89778302,140396744,75494269,73140898,77001199,130593882,80537512,68983232,73124889,64482702,77097931,69476467,81781512,71885116,77209967,82614315,73239665,68222289,76559061,111239360,72488580,70986683,74827620,76950924,64848248,58513882,61461332,63268045,58691470,62132173,70964286,66670568,62174528,62392752,62461909,59379205,59723072,64823302,58235440,63095161,63341428,69203973,62004454,59940024,69781798,75758143,78621744,59283651,57859012,59098775,71375790,67794739,61663057,60606314,76848803,72890765,85787323,105841566,65511421,60987536,67930065,73818279,77574318,69477441,76063681,75233788,64237828,71536974,80592598,74442062,81996589,76884751,66304999,73780801,76528965,74363449,66863862,63399491,68493198,73571233,74635527,76557133,83736054,79545371,71662923,74542685,117326505,63458522,79445467,69033265,72889809,66703979,64826332,63851352,63061888,65207349,59502813,60342136,64368831,63567943,58090276,59780122,69709332,73072886,78486770,61192852,68823846,67024698,61532474,58802024,69511790
B2,pk_bulk_existing_8192,36014374,33691090,33448739,38906689,37538468,37918598,37168256,36844895,36465213,46611954,174403496,75196585,56934977,86932138,43944200,53667637,45240347,46386638,46950252,46548289,37958957,43032581,45337740,43808602,40103462,42002068,66510164,71166922,126021835,109947802,66598939,47371888,69876853,56715733,50974708,40571779,86553151,57051450,1518134218,480309190,114240416,84761103,57796937,52957615,55824856,50821003,51434764,45815534,40060671,45932942,43878666,48545496,39950261,47005815,69105909,45101605,52023487,37838338,49886275,40264866,40146246,773926035,254608304,42693390,42919594,33736543,34251361,34551903,37872832,36301366,34524321,42948949,43520819,41472445,41350406,37568166,48657251,39141565,43374492,53644516,43793950,41085278,49648023,45532539,58482585,36553372,206734420,263169637,49527277,39356439,33474541,37943888,37049271,41457626,37069154,36735769,43136650,50888608,43348397,44007914,45860704,45917524,36334485,42361242,40482482,37663648,43490869,44838723,45851560,37399822,36446752,73422294,47227700,41432148,49174600,37411502,41306976,47758529,42747689,41227662,37487879,37690582,35399698,38432748,36451005,39484711,32569816,38671876,37476912,40288294,48717952,59915300,49737970,43966169,41878501,38623387,42276347,50173205,36257619,39397225,32958574,47060402,34251618,36003194,39642426,41506603,35393367,35392244,35696136,46923099,34284745,42166438,37317357,40419025,33418861,32844420,47992265,31758770,46662335,39916361,42817557
B2,ordinary_bulk_insert_8192,79591416,70414032,63917955,68080967,70953252,70261289,72583045,71717985,77369910,72635052,75387129,73781667,64648962,63628983,69452693,71452384,69621223,63737186,71602777,74741003,62713453,82037321,74999409,64026441,126271296,67169980,59429315,66205964,64713327,59379074,59259499,60396093,58085835,58179240,60168028,67984846,57644161,63337325,66867139,63949560,63286474,61326933,69912358,66272762,73988383,72015235,59507523,73594100,78009788,83546820,101444615,118779105,120005223,71335131,90246440,99542801,72630560,71640426,68848606,63879958,80708920,89196580,65268335,63552684,68923969,74608705,64057678,61967830,88474084,74579120,67042484,85803726,82297473,66362689,68656130,64681644,67517034,60053251,70736423,69507378,113725940,69323780,70802551,59187766,64681025,70108989,58656710,60468007,63581810,63984824,62433421,62146273,67937874,63173233,60724867,63822217,67991398,58393172,102966544,67405332,58901029,58107395,67585642,67168472,59726605,80983184,81489645,68405540,72147534,67512278,136665426,71831170,74804776,63769776,72202367,80439444,74581727,79434351,88827779,73407758,71195447,73562913,70457284,83816347,80634987,73548012,71782667,70183428,64891109,88308730,88242602,77787108,111689274,74337623,79206755,68941822,67253562,61754227,137779334,87009862,68998804,64763087,70511900,66828611,59630307,59807230,62564832,62560472,58147329,61524124,69577392,69093577,59516376,68760508,66425100,63100064,60794839,60359860,60517877,65779158,61756119
A2,pk_bulk_existing_8192,37922383,39309641,35803549,37712401,37314425,39627956,37540701,48073949,38897304,50070275,39518291,135224471,44408121,69652297,60735414,54881350,46249099,44265720,66838174,50495998,63611863,66564587,50912072,45118344,73288451,58756069,47121443,77959463,101123238,119706868,133293010,78867912,46775307,54231989,49611122,55215649,59641511,49138131,46468826,1284911423,1490277055,59807733,57251451,58598089,62145662,48671002,51441037,50146607,46115175,77115358,56956540,46851804,98138942,45920221,47615650,54047434,44129206,52582835,56052026,54114292,48179111,308814654,1474607278,1723158613,44025000,46025740,37733587,36498745,34911997,37756008,37756460,55286860,50183721,54972764,48655149,41875889,46363757,79687453,48215352,52843708,64917128,40002035,58191110,48481951,46409955,37430937,231640063,125634726,69315485,44680430,35042252,37256190,38775851,39951252,47573014,42635786,56321141,44419955,45115702,49475248,47669002,57144477,48555927,52909940,44450521,39794000,42329131,63930411,49329942,38605368,43331050,38904309,49044826,46040121,38543015,39898820,43328438,38124859,53269534,40687784,40238395,47398203,43621442,59686063,43144064,48665552,45727645,35723815,49430210,52104863,46079821,41552638,82067899,41550143,44926512,41291521,54856791,52735704,41149547,45485540,35261431,36497913,51672919,44636868,45475682,43467224,48374823,62980155,34898189,35712198,35916613,40696012,36304194,35377454,41610994,39130499,40870362,34599153,47087866,43632047,49856174
A2,ordinary_bulk_insert_8192,74159405,62987629,61295085,81254516,72056987,70263700,67815451,75662888,74676921,69296354,80738572,75912243,63001223,73298213,64486424,60544617,63345829,69942068,71765175,74833159,64765973,89919849,66323545,72228069,113617456,59779809,59050540,68560828,59818829,61968480,61922741,58913639,58844104,64925099,60587667,59951425,63399468,68278376,67526433,59864540,61247955,67141065,85180197,124210016,69900196,62076456,61373304,64961570,70568474,84205288,102419607,132517967,118294471,67898049,75981283,94463823,72836836,67080207,68137158,69385989,78220376,68532952,65871270,72635976,81013519,65337073,64772022,73240638,72898454,70210113,67007965,71470572,77056500,67493539,59740963,62821380,60412580,66913431,62358581,83788153,103570987,59411884,59064351,104541352,63384814,60140541,58308736,64838520,63791598,59759334,57341580,64607988,66315923,61696467,61855474,66161097,72525660,65971858,64518089,61828342,60161009,65327354,68777770,64426722,59627471,70242114,74520962,65742819,116702901,59782551,64342492,82447834,82543615,65706634,66846740,79355117,69664804,73080719,66822545,82160436,69035722,75628527,69120797,61764379,77764737,70593539,72285968,64940982,64474028,79947907,81505513,81407950,80757157,78665960,82977663,81098581,71935722,116280682,65642808,147794488,64192182,80981225,68853549,62853328,63422967,64088144,67918653,60998128,58096659,64839303,63422700,65994289,60012851,72029396,67496087,60375426,59822840,64758521,62944437,58041066,63677685Three-version diagnostic, all Exec durations in ns (A=release, P=previous, B=updated)process,workload,ns_1,ns_2,ns_3,ns_4,ns_5,ns_6,ns_7,ns_8,ns_9,ns_10,ns_11,ns_12,ns_13,ns_14,ns_15,ns_16,ns_17,ns_18,ns_19,ns_20,ns_21,ns_22,ns_23,ns_24,ns_25,ns_26,ns_27,ns_28,ns_29,ns_30,ns_31,ns_32,ns_33,ns_34,ns_35,ns_36,ns_37,ns_38,ns_39,ns_40,ns_41,ns_42,ns_43,ns_44,ns_45,ns_46,ns_47,ns_48,ns_49,ns_50,ns_51,ns_52,ns_53,ns_54,ns_55,ns_56,ns_57,ns_58,ns_59,ns_60,ns_61,ns_62,ns_63,ns_64,ns_65,ns_66,ns_67,ns_68,ns_69,ns_70,ns_71,ns_72,ns_73,ns_74,ns_75,ns_76,ns_77,ns_78,ns_79,ns_80,ns_81,ns_82,ns_83,ns_84,ns_85,ns_86,ns_87,ns_88,ns_89,ns_90,ns_91,ns_92,ns_93,ns_94,ns_95,ns_96,ns_97
A1,pk_bulk_existing_8192,61493941,67606321,61716806,63317697,58292992,58154913,60010049,65508857,64909542,51279519,57437018,343603701,468641161,67528157,88440429,72044710,79445138,84384384,379565067,60181333,57525807,72523770,54334465,99876148,59526379,61621189,62979852,77226168,75766955,55085685,92129994,68395894,65134685,72387021,169760181,1257963563,45575965,46801832,55834759,38712617,45450559,39838490,45411684,45334308,49256294,47383741,37395827,54133330,44397254,45509902,51178015,40623660,534323593,36196941,35842670,40278930,65413905,46853367,58759707,50024325,42441592,148706324,36398732,44892308,37506934,41984145,45529951,38158034,41463007,36930852,35646204,34805075,47920374,51734114,43659484,35703899,36230016,36728592,85482080,46604347,41019286,65147775,46150940,46136456,37062420,37289324,40331418,44522983,35900344,45059736,34451510,53210313,40446815,40428986,45997973,43224569,40952859
A1,ordinary_bulk_insert_8192,71055678,60110154,70739999,59910948,72261061,76251670,72081095,71999955,70750035,63535904,66045876,66806815,63727178,65125927,82044158,74458276,67220868,68907938,69706302,70975385,62336470,112519837,75260514,65696775,61781891,64308208,62285777,63219505,67666943,68396880,78471779,87894086,76043873,70663827,75857832,75771179,58889586,60717231,60257738,69061665,72693925,72591673,59447169,60005311,58797823,68629528,138680787,70619968,63983910,60832367,64219467,72317411,63622614,62430485,62984596,59450359,57910617,69358096,69089970,69958207,77936182,68358535,68711969,63124233,58683261,65946250,61108265,81046794,69684080,80392165,64438089,142871844,74659935,60910925,59341657,76899767,69143389,66277796,60611578,62056154,88987816,72410749,63077756,64557419,65878363,69108587,71801074,67399319,74041835,76701769,68484472,67618671,67260479,79582902,70814854,78763685,120323650
P1,pk_bulk_existing_8192,67689213,62076136,65139864,69671382,70136469,64773659,58433599,66134098,82577281,66235834,60484817,470064169,483979898,80246679,77149287,107411118,87307934,93984145,83352983,79721025,85753689,121034583,61156800,116639692,65018373,78654772,70921292,116615117,57491608,65048723,131728662,77261847,74621414,54087038,116597960,265454414,66101870,51857011,49491513,42493741,50331208,51192132,58267297,60696894,48934021,44683139,73009064,53926499,45947053,47242906,46005433,41787472,42622537,43347146,39476383,43314540,49767678,57576000,50180614,43042477,47216112,46252918,49339356,44251737,43597106,59937442,57954573,47307680,47646142,45355462,41159635,47420548,52577222,47033592,56215570,46898355,43226428,61237047,61519750,49779753,77089426,60626968,48994913,45672210,50547582,43198449,43118835,52672813,51579357,44415439,45463226,53854330,44229194,45503210,64761065,58269578,57649443
P1,ordinary_bulk_insert_8192,61107986,74994483,67968749,75220081,74136567,70682244,59494532,71634108,71591519,66944450,68237962,64086937,79990628,87225134,80558338,67920989,65109915,65511812,63718759,65615369,62513774,130598376,78167999,67240891,77079086,59134588,65603926,70588689,63756602,69646471,65064961,73378367,83742634,80295971,72744446,73899475,64167575,59223262,63218736,57957554,63293143,77647825,68699879,60390125,59485138,63563575,67688859,69666749,66072455,62297988,62743595,64183501,75267023,62734451,66137078,61486762,56758547,59942761,65883317,72830856,65478131,79073738,67882089,73282950,60107824,76590242,60570802,81130084,77022709,111564430,60444463,87495334,82830369,66050785,77258170,71027683,75381729,63807052,64167550,65764234,80754859,62710610,66739971,67216081,64734086,64430769,70397180,70309626,76002461,71222597,82649935,64026253,73728164,77034984,81553426,78769131,70254665
B1,pk_bulk_existing_8192,47827276,49977978,54145990,64568284,48202062,48854598,61842541,48500394,66097384,59501218,434767807,220512192,387627679,152129210,88302133,80933898,82484538,146163961,299070439,123337565,67397469,76927088,100739081,51960782,60969754,84700630,62133610,87665962,55622402,56133242,81272360,48675150,60484880,52640149,75675952,55250449,53311278,47294976,74489195,45393607,41801893,45673432,49328950,45809306,39626688,45663162,46936900,46645098,40971131,40376881,43721536,33237222,34036446,32580913,38522367,35071716,41893391,48093027,41779130,34598279,32634216,34627930,132729849,38078132,36223422,53181165,68959906,42708640,37004861,32392772,37896771,37610086,39892853,41364044,44355596,32910669,36318445,37828476,43987852,34860387,36860879,38990601,35125238,38219465,35177723,42235096,36913995,40422148,33584653,37168865,34469692,43782064,39302753,39516573,42713030,37434622,46876385
B1,ordinary_bulk_insert_8192,58718910,58132640,74041304,77615087,68349582,61649364,59796208,62502922,70515486,70876282,73822248,65366699,65018674,82822879,62452461,71040694,68131852,63626338,63330898,62542479,66513290,111015112,172550494,64216658,61842252,66001444,63055037,68862803,66990224,66638705,68975692,88985268,80756693,91300940,71493704,71848641,71314112,68624813,60795649,86551993,69734544,67622471,70695193,66310861,58758535,65743451,87357517,67715729,65925276,58977404,71222780,63198551,71409147,70741507,67551611,62018824,60355116,60907314,58975067,70824226,67397423,75047660,65569377,65464176,63983827,59149197,56766826,85273752,79210278,66814635,65393993,65667419,87043047,69914162,88764861,73882494,74967952,66306400,68808309,71759014,64820051,68606007,66981833,63680607,67781734,65724000,76196926,68952601,74772211,65155844,106638959,69619078,76455889,72630070,67858821,77162938,128457210
B2,pk_bulk_existing_8192,54292989,52359218,49699199,63342651,53515520,59034638,56218200,65601480,53063449,53926564,63136782,170473695,240669754,72692600,50398133,55431775,87163972,78850378,116864954,58441473,77926730,91462456,50166517,73345764,55879432,61510870,52545334,53479815,88460062,84370309,71232315,103690960,46017940,50283729,192532004,206013994,43644643,42364558,65558536,46715730,39469722,53437159,39435065,45455638,41897765,35879047,36063102,47210234,36177598,44102152,43206528,34691145,36551108,32386243,36257936,33711442,42353077,41094420,72807792,44971186,32302343,102137084,117833018,34751647,46667166,55048848,38992554,37358749,37141370,33558875,32670905,42431442,45593393,41247666,46879586,46780421,33219942,47661846,48844138,40496212,39679391,41539464,37775741,35623975,34071215,37293508,33174227,44976209,43571830,33227265,45780661,40742653,44502494,38075224,47968373,38651960,35198747
B2,ordinary_bulk_insert_8192,67441547,60518069,58867374,557193849,66930354,63240200,71136790,68030447,64994296,62757805,65719515,76189029,64852278,65146411,76386963,71731671,64811025,72314109,72841804,104272991,60553214,81553843,94314528,59556968,63881238,60605787,67611589,78105090,69464854,77272413,79107221,78019561,75281385,74148845,70344081,64198116,65671037,59235630,64421933,66944838,68812425,63901260,64030949,63736991,72799586,124623064,99350873,60766764,60252946,58986435,60942493,66690632,73244900,59979094,63027455,61111289,59328033,67005852,68971580,59754928,58586605,73810048,73190683,62419308,60629200,68181537,60433392,66115654,69677789,111462727,69036003,73112768,83004005,67545669,68786761,69336485,79220761,58068545,58999948,63239645,71085341,71910223,65904939,67343245,69314525,78008375,67785481,63622668,69098573,112231643,75053138,65420531,107242397,98728583,67819263,72718613,69942811
P2,pk_bulk_existing_8192,72062526,82369280,62272997,61872545,59959684,60184351,62536422,67251366,112019872,62148017,70370755,327462199,418161638,73180284,62695451,75370056,102759564,76841236,155410295,81594483,86920014,97270560,68341519,92451128,62528426,77967565,129417907,71983242,56448264,73944917,111651273,61787310,68509887,57490200,387513351,64462402,99031662,65109864,61092209,54539911,43108113,59148908,51194831,46344512,54625158,46600698,53147083,55112222,44798853,46971381,52552842,49637794,42984018,43701655,41900129,41541622,50291493,53990581,55544284,42695415,51279553,567814038,1592384541,50161813,47420075,71493184,52450446,51098010,46547990,45148100,45573659,51176944,49216744,41641175,55486755,52937638,47271363,48674789,45313636,44923662,44771310,46739171,44424724,44045833,41525546,44226717,41857613,48944081,40342245,42556975,51655978,45814552,49266411,44235724,51836578,46506728,45014399
P2,ordinary_bulk_insert_8192,56568854,58044849,60928898,68850553,58790398,63200139,68618662,66255911,67140484,63357669,72822700,69337483,69205599,72882562,76269779,66625736,66112304,76782900,70431239,63509514,67445707,111299829,66381220,61074255,61478636,64920285,68501189,77984614,78109000,79799024,79115706,78074500,73765670,74434720,66618868,67357301,59334182,71421117,65253252,74233997,68398990,66524296,64249066,65370537,69233262,74043890,69031306,106351402,60394909,61435122,61989135,60629517,72694735,64260025,59929365,67910923,64960408,70103008,58123960,59589840,58050498,71092818,65111682,59720100,68579010,72190696,65432554,62166976,61906828,61319035,67976937,68366185,102715732,83083272,76228904,69039067,61321519,59975919,60724694,70658057,148814029,71261489,64551606,67465938,65597221,65345122,64410006,68726299,70760831,67205212,133559236,71119545,72022122,75802434,64805188,70003168,72950228
A2,pk_bulk_existing_8192,58542250,72575146,64041234,60238489,72110032,66025420,60265876,62305220,133281049,60166622,357389494,324280971,480908357,64849850,67595926,82377890,116869104,99034644,122615587,124721370,50943922,76821250,78928034,59650711,44500070,109740525,59561354,65582442,63315487,123104173,84989896,58111712,62267887,81538071,128653087,54642043,51207934,47863536,61356893,40510454,46220356,49777655,53685237,47305114,45205635,62949314,56876372,39909654,45934359,40020396,43146780,35578450,42360716,34153926,40271741,43574193,55888124,106311297,49312529,47241101,34909731,37179499,62879486,39808399,40229041,46937641,49430940,39310909,44295680,46270915,35875465,60797783,48874954,44223333,44275117,36846394,36669920,46233035,51575426,72520488,37112173,37702092,48654738,37272111,39587579,48448316,38677662,42494685,35717114,34867032,40131218,44476680,44588279,37141514,51340380,38313281,43563474
A2,ordinary_bulk_insert_8192,60466091,60954557,63975210,73520744,61980132,61465212,67937846,63949547,63792824,68970937,70534719,73050392,65644242,67138178,77438727,66792350,65619332,71199293,64112568,64924681,122433950,84765538,73009385,62194209,66644041,69664005,72044189,70617187,74254558,73216387,73645372,75054441,69572755,71956827,66533464,70293851,67115368,67271563,67110297,69805744,70434360,74054207,66146732,66095479,69447559,66598584,105662090,59505839,68788261,65048193,64017392,62189743,73787830,59065559,63665172,59875502,66440495,58903287,60020343,61357207,65210479,90352888,58353387,62855355,60241524,66441510,61029379,63384779,70431758,68414175,80253137,70721154,112402647,62815800,110678777,77821348,66430898,60453946,60188429,70332615,75261226,69128577,64400987,63517536,60545130,72655694,66904840,79274233,75475490,65921409,81149883,68124429,71461626,79216240,74131506,72705647,108337052 |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: a76c71369e9452d589de8a9018cd8e7f705e0f08
Assessment: approve
The ordered action owner, writer fence, and captured transaction view have distinct responsibilities and reuse existing execution and storage mechanisms. The prior wide-batch and spill concerns are resolved. The author’s matched comparison addresses the latest review’s existing-owner performance request; the earlier requested full release matrix remains open, but its exact workload count is not an independent repository policy gate.
Model: gpt-6.1-terra / max
Session: 01a22b07-00b6-7e32-b0a1-3099d0b867c7 · slot 1 · generation 39
Validation:
-
Isolation preflight and native-input audit passed; the audit matched 170 source inputs and five retained outputs. Receipts: checks/1796058102938820478-3.json and checks/1796058148479482725-3.json.
-
Focused action-owner, evaluation, and compiler tests passed, as did targeted race tests for the new bulk path, cleanup, and publication. Receipts: checks/1796058350220049386-3.json and checks/1796058992562239463-3.json.
-
Public ordered-upsert, writer-rollback, partitioned-upsert, and no-conflict SQL tests passed, including the 60,000-row case. Receipts: checks/1796058497365881352-3.json and checks/1796059259501234146-3.json.
-
Transaction-view, object-cleanup, persisted-deduplication, planner-ordering, and spill-replay checks passed. Receipts: checks/1796059065194019717-3.json and checks/1796059259501234146-3.json.
-
Remote candidate reads, float-key filtering, hash joins, streaming row numbers, and materialized-source checks passed. Receipt: checks/1796059505647325309-3.json.
-
Recomputed the supplied current-head benchmark samples and matched the reported medians and process spreads. Receipt and log: checks/1796059436261752752-4.json and recompute-benchmarks.log. The assigned diff also passed git diff --check.
-
The discussion assessment accounts for all 52 indexed items, and the source checkout remained unchanged.
Limitations:
-
The latency measurements are author-supplied and were not independently rerun. The full release performance matrix remains open; earlier noisy singleton and hot-key results establish neither equivalence nor a confirmed regression.
-
Optimistic requests paired with incremental TN deduplication can incur additional persisted-key scans; that configuration’s cost was not separately measured.
-
The frozen CI snapshot showed shared build, unit-test, and static-analysis jobs in progress. Broader author-reported BVT and race suites were not independently repeated.
|
Updated the existing PR in The pre-change CPU profile recorded 0.38 s in the insert-run handler, including 0.13 s in target preparation and 0.17 s in key transitions. These are cumulative CPU samples. The SQL measurements below quantify the recovered latency. Matched MySQL measurements, 8,192 rows per statement Each cell gives p50 / p95 in ms. Each version ran in two independent processes, 97 measured autocommit SQL executions per process per workload. The schedule rotated all six processes and serialized execution. Warmups, resets and result verification ran outside the timed Exec. Release is
The fresh-PK statement recovers about 36% of the measured gap. Its p50 still exceeds release by 1.63 ms. Attributing the remaining difference to a particular operator or to transaction locking would require further evidence. Four additional isolated whole-process CPU profiles used the same fixture (97 measured executions in each, plus calibration, warmup, setup and verification). For fresh PKs, cumulative CPU in Release comparison across 15 workloads Two processes per version, 31 SQL samples per process per workload, four-way balanced order. The design requires same-version process median spread at most 2.5% for singleton cases and 5% for batches, and p50 regression at most 5% and 10% respectively. Spread is the larger of the two same-version spreads. A noisy row remains inconclusive.
The matrix has 9 within budget, 5 inconclusive singletons and 1 over budget. For the narrow multi-unique bulk insert (+10.37% in that run), we separately rotated release, previous PR and updated PR across six processes, 97 measured executions per process. Respective p50 / p95 in ms were 66.297 / 97.531, 71.128 / 88.607 and 70.690 / 90.110. Updated vs release was +6.63%, previous vs release was +7.29%, and updated vs previous was -0.61%. This workload already took longer on the previous PR head. Its median crosses the 10% threshold between experiments. Both results are retained and full-matrix performance signoff is open. The separate 512-row generated-unique case passed its forced-index check on the updated PR. Pooled p50 / p95 were 46.317 / 51.925 ms across 62 samples. The release failed that check in previous QA, so a ratio would compare different results. The hashmap and operator packages passed 292 tests and subtests under the race detector. The public SQL ODKU suite passed another 106. Coverage includes unsorted repeated keys across batches, a repeat at the exact growth limit, NULL/snapshot fallback, allocation failure and statement rollback. Repository static analysis of the three packages reported zero issues. Binary and fixture hashes, scheduling order and peak RSSA = release, P = previous PR, B = updated PR. RSS is the peak of an entire embedded process across its suite. Published benchmark setup.
Per-process SQL samples in measurement order, milliseconds |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 74b00883105c75eda926e7fd017c490f8c658fad
Assessment: approve
The new single-key insert path reuses the existing ownership index and returns dependent actions to the ordered resolver. Targeted correctness, failure-cleanup, race, and public SQL checks passed. The supplied matched samples show a 3.04% median improvement over the preceding head for the affected primary-key batch.
Model: gpt-6.1-terra / max
Session: 01a22b07-00b6-7e32-b0a1-3099d0b867c7 · slot 1 · generation 39
Validation:
-
Isolation preflight and native-input audit passed. Receipts: checks/1796061783453038515-3.json and checks/1796061783801370052-3.json.
-
Focused ODKU and hash-map tests passed, including repeated keys at the growth boundary, allocation failure, reset, and grouping fallback. Targeted race tests also passed. Receipts: checks/1796061965766054988-4.json and checks/1796062273077923775-3.json.
-
Public ordered-upsert and writer-rollback tests passed. A separate, retained test overlay exercised 1,500 string primary keys with repeated owners through the public SQL frontend. Receipts: checks/1796062095310884260-3.json and checks/1796062366570245763-4.json.
-
Recomputed the author-supplied benchmark samples and checked the assigned diff for whitespace errors. Receipts: checks/1796062119261041856-4.json and checks/1796062444347424665-3.json.
-
Reused the preceding review’s traceable storage, partition, spill, and remote-read evidence for unchanged paths. The discussion assessment accounts for all 55 indexed items.
Limitations:
-
The benchmarks were supplied by the author and were not independently rerun. The full release matrix remains open: five singleton comparisons were noisy, and the multi-key batch measured 10.37% slower in one run and 6.63% slower in a longer repeat.
-
Tests ran on the assigned head. The target’s later vector-index changes were inspected for overlap but were not tested in a merged tree.
-
The frozen CI snapshot showed shared build, unit-test, and static-analysis jobs in progress.
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: daec2409994574a2ad298a1d95bf07abd4fa3e0c
Assessment: request_changes
The ordered-action owner, writer fence, and captured transaction view have distinct responsibilities and reuse existing execution and storage mechanisms. The new affected-row and bulk-action paths passed focused checks. One regression remains in sort memory attribution. The earlier full-matrix performance dispute was narrowed by later matched comparisons; those results do not establish equivalence for every workload.
Model: gpt-6.1-terra / max
Session: 01a22af4-cf2a-7f70-88e4-931bbf57d739 · slot 2 · generation 14
- P2
pkg/sql/colexec/mergeorder/order.go:592: An in-memory sort uses an Order child whose owned output is transferred directly to MergeOrder.
Impact: The retained sort run is omitted from both operators' MemorySize statistics, so EXPLAIN ANALYZE underreports sort memory and can obscure a memory-heavy sort. This is a diagnostic regression; it does not establish a billing or spill-budget failure.
Evidence: Order.appendBatch allocates its retained batch through AppendWithCopy, but Order does not record that allocation. The transfer branch skips MergeOrder's analyzer.Alloc. A matched operator probe retained a nonempty three-byte output while reporting order_memory=0 and merge_memory=0; the parent reported merge_memory=3. A public three-CN EXPLAIN ANALYZE probe also showed the sort figure fall from 16 KiB to 8 KiB. Account for the actual owned allocation once, either in Order or when ownership transfers, and cover the attribution with a regression test.
Validation:
-
Private /tmp and loopback preflight passed; native provenance matched 170 source inputs. Receipts: checks/1796066672269472503-3.json and checks/1796066711125362730-3.json.
-
Focused order, merge-order, ODKU owner, and compiler tests passed on the assigned head; owners-clean.stdout.log and checks/1796067901519097751-3.json.
-
Public systematic ODKU SQL passed, including both CLIENT_FOUND_ROWS modes and the 60,000-row wide-insert case. Partitioned ODKU insert, update, and composite-key cases also passed; public-odku.stdout.log, partition-odku.stdout.log, and checks/1796067480155621166-3.json and checks/1796067992566825101-3.json.
-
A corrected three-way overlay of the advanced target passed selected public SQL, ordered-index planner, and retry tests; target-integrated-corrected.stdout.log and checks/1796067676606502655-3.json.
-
Head and parent sort-memory probes and public EXPLAIN probes passed as diagnostic executions; their logs and receipts are indexed in validation-evidence.json. The earlier failed probe and incorrectly ordered overlay were corrected diagnostic errors.
-
The diff whitespace check passed, the source remained clean, and discussion-assessment.json accounts for all 57 indexed items; review-audit.log and checks/1796068171208226475-5.json.
Limitations:
-
The frozen CI snapshot had build, unit, coverage, and static-analysis jobs in progress; upgrade jobs were skipped. Broader race and BVT suites were not independently rerun on this head.
-
Released-binary 4.2.9 or hotfix upgrade and restore tests were not run. No changed durable encoding was identified; the reviewed plan and pipeline fields are transient under the documented shutdown-upgrade policy.
-
The scoped performance samples were author-supplied and independently recomputed in prior review; the broader matrix and optimistic incremental-deduplication scan cost remain inconclusive.
Resolve each input against the current owner, validate the assigned row and publish writer counts only after all actions succeed. Keep SQL-equal intermediate values visible to later inputs and size constant output vectors to the complete batch.
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 0e0014eb443cebf061ec7856f8b89751780b829f
Assessment: approve
No actionable findings remain. The ordered action owner, compiler result fence, and engine-owned transaction view have distinct responsibilities and reuse existing execution and storage mechanisms. The latest change resolves the previously reported sort-memory attribution defect. Earlier performance concerns were narrowed by matched comparisons; the full workload matrix remains inconclusive.
Model: gpt-6.1-terra / max
Session: 01a22aff-bb68-7e31-ae71-ee4ab48ad9d0 · slot 0 · generation 45
Validation:
-
On the assigned head, the MergeOrder attribution and reset tests passed, as did the partitioned ordered-upsert test covering inserts, updates, and composite keys. Receipts: checks/1796089068868090973-3.json and checks/1796089150594658120-3.json.
-
Reused the preceding review’s public SQL, planner, and compiler checks after matching all 22 target-overlay Go files to the current source. Those checks included ordered upserts and both CLIENT_FOUND_ROWS modes.
-
The private /tmp and loopback preflight passed. Native provenance matched 170 source inputs and five outputs, and the assigned diff passed git diff --check.
-
The discussion assessment covers all 59 indexed entries. review-audit.log reconciles the retained logs, receipts, and clean source identity.
Limitations:
-
The first focused test attempt timed out while fetching dependencies; it did not run tests. The retry passed after switching to a responsive Go proxy.
-
The full performance matrix was not independently rerun. Earlier matched samples do not establish equivalence for every workload.
-
The frozen CI snapshot had unit, coverage, and static-analysis jobs still in progress. The distributed row-count fixture and released-binary upgrade were not run locally.
What type of PR is this?
Which issue(s) this PR fixes
Fixes #31956, fixes #31961, fixes #31962. Adds scalar ENUM coverage for #31958 and retains the resolved-row locking fix from #31957 for #31955 and #31959.
Problem and design
Inputs in one
INSERT ... ON DUPLICATE KEY UPDATEcan reach the same row through different UNIQUE indexes or through a key inserted or moved earlier in the statement. Resolving every action from the initial snapshot loses updates or raises false duplicate errors.PreInsertUniqueowns ordered row images, physical PK/UNIQUE claims, and typed SQL no-op checks. The planner binds assignments and key encodings. The compiler validates the coordinator owner before starting producers and publishes logical affected rows after writer success.Immutable keys use the snapshot join. Generated-key moves use the engine's statement view of stored and workspace rows, including partitions. Failure rolls back the statement and retry starts with fresh state.
Retires the unreachable legacy ODKU rewrite, redundant plan marker and scratch images, and unused HashBuild copy/cleanup paths. Compiler preflight finds the owner in its validation pass.
The action owner validates the inserted row or the fully assigned duplicate row. A later input sees evaluated values, including signed zero and JSON representations. A standalone payload-only no-op reports zero affected rows and leaves the stored image intact. The physical-key index follows actual moves even when the SQL affected count is zero.
Insert-only output keeps old-image columns as constant NULL vectors. Each append sets their length from the cumulative batch row count. This fixes the valid 60,000-row wide-table upsert that previously failed at the downstream writer with error 20301.
Design and acceptance criteria
Validation
Rebased on
4.2-dev@95679da6cf. The rebase retains the release timeout classifier, both wire fields and final-row CHECK behavior. The feature head isa76c71369e.invalid vector window; the corrected owner returned 60,000 affected rows, 60,000 stored rows and the expected payload sum. The operator regression also reproduced the mismatch of 7,371 batch rows and a 1,421-entry old-image column.Current performance
The previous PR revision showed a 9.73% p50 slowdown for 8,192 existing-PK updates. The updated owner batches column copies for independent snapshot rows. Repeated targets and general expressions retain ordered scalar evaluation.
This release comparison used 322 verified MySQL executions per version per workload in 336 time blocks. In the separate three-version diagnostic the existing-PK p50 was 49.37 ms on release, 54.58 ms on the previous PR and 45.91 ms on the updated PR. Previous-PR process spread was 6.48%. Full-matrix release qualification remains open. Measurements, variation and raw samples · Previous comparison
Earlier Linux comparison on
0e4db02dddand9085200685Linux amd64, Go 1.26.4, three in-process CNs, identical native libraries and the same public MySQL benchmark. Each version verifies the final rows after each untimed setup and timed execution. Each comparison used base, candidate, candidate, base process order and three warmups per workload per process. Times are in milliseconds. Spread is the difference between the two process medians divided by the smaller median. Peak RSS across the full-sweep processes was 1.47 GiB for the base and 1.40 GiB for the candidate.
The initial 15-workload sweep produced 14 measured executions per workload per version. Fourteen workloads exceeded their same-version spread limit. The 512-byte insert was the one workload meeting precision, and its p50 was 13.6% above base. A focused repeat with CPU profiles and 42 measurements per version gave 91.37 → 92.86 ms (+1.6%) for the same workload. Its p95 increased from 738 to 1,439 ms. Empty-table PK inserts also met the focused p50 and spread budgets. The complete performance acceptance remains open, including tail behavior.
The generated-unique workload passed its forced-index oracle at a standalone candidate p50 of 38.61 ms (seven executions, 512 actions per execution).
All 15 workloads from the first sweep
Earlier performance evidence
Before this rebase, the target and candidate used the same three-CN MySQL fixture, native libraries, Go 1.26.4 and Darwin arm64 host. Each comparison alternated target and candidate processes in ABBA order. The fixture validates resulting rows outside the timing window. The empty-table PK row uses a dedicated rerun with the ordinary INSERT control after the broader focused run found excess baseline spread.
On this earlier Darwin comparison, both review-targeted PK workloads met the 10% batch p50 budget and the 5% process-spread limit in focused runs. The 15-workload sweep checked SQL results in both versions; several workloads, including the ordinary INSERT control, exceeded the process-spread limit. Full-suite performance acceptance remains open. An isolated 512-byte insert follow-up measured p50 86.51 → 92.83 ms and p95 99.17 → 106.10 ms. The companion ordinary INSERT control spread was 6.01% on the candidate in that run.
The previous
2996355comparison reported +36.1% for existing-PK ODKU and +21.3% for empty-table PK ODKU. The review requested a reduction and a repeat comparison. Review