Skip to content

fix(zero-server): skip the mutation if the retry tx succeeds#5634

Merged
tantaman merged 6 commits intomainfrom
mlaw/app-error
Mar 4, 2026
Merged

fix(zero-server): skip the mutation if the retry tx succeeds#5634
tantaman merged 6 commits intomainfrom
mlaw/app-error

Conversation

@tantaman
Copy link
Contributor

@tantaman tantaman commented Mar 3, 2026

No description provided.

@vercel
Copy link

vercel bot commented Mar 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
replicache-docs Ready Ready Preview, Comment Mar 3, 2026 8:48pm
zbugs Ready Ready Preview, Comment Mar 3, 2026 8:48pm

Request Review

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

🐰 Bencher Report

Branchmlaw/app-error
TestbedLinux
Click to view all benchmark results
BenchmarkFile SizeBenchmark Result
kilobytes (KB)
(Result Δ%)
Upper Boundary
kilobytes (KB)
(Limit %)
zero-package.tgz📈 view plot
🚷 view threshold
1,894.91 KB
(+0.06%)Baseline: 1,893.76 KB
1,931.64 KB
(98.10%)
zero.js📈 view plot
🚷 view threshold
246.87 KB
(+0.28%)Baseline: 246.17 KB
251.09 KB
(98.32%)
zero.js.br📈 view plot
🚷 view threshold
67.63 KB
(+0.26%)Baseline: 67.45 KB
68.80 KB
(98.30%)
🐰 View full continuous benchmarking report in Bencher

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

🐰 Bencher Report

Branchmlaw/app-error
Testbedself-hosted
Click to view all benchmark results
BenchmarkThroughputBenchmark Result
operations / second (ops/s)
(Result Δ%)
Lower Boundary
operations / second (ops/s)
(Limit %)
src/client/custom.bench.ts > big schema📈 view plot
🚷 view threshold
126,718.66 ops/s
(-0.65%)Baseline: 127,550.53 ops/s
122,065.18 ops/s
(96.33%)
src/client/zero.bench.ts > basics > All 1000 rows x 10 columns (numbers)📈 view plot
🚷 view threshold
2,204.06 ops/s
(+36.53%)Baseline: 1,614.28 ops/s
561.14 ops/s
(25.46%)
src/client/zero.bench.ts > pk compare > pk = N📈 view plot
🚷 view threshold
56,565.43 ops/s
(-2.33%)Baseline: 57,913.62 ops/s
53,629.11 ops/s
(94.81%)
src/client/zero.bench.ts > with filter > Lower rows 500 x 10 columns (numbers)📈 view plot
🚷 view threshold
3,351.23 ops/s
(+16.40%)Baseline: 2,879.10 ops/s
1,947.86 ops/s
(58.12%)
🐰 View full continuous benchmarking report in Bencher

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

🐰 Bencher Report

Branchmlaw/app-error
Testbedself-hosted
Click to view all benchmark results
BenchmarkThroughputBenchmark Result
operations / second (ops/s)
(Result Δ%)
Lower Boundary
operations / second (ops/s)
(Limit %)
1 exists: track.exists(album)📈 view plot
🚷 view threshold
12,382.92 ops/s
(-3.67%)Baseline: 12,854.04 ops/s
12,066.31 ops/s
(97.44%)
10 exists (AND)📈 view plot
🚷 view threshold
177,892.30 ops/s
(-5.31%)Baseline: 187,869.86 ops/s
172,656.45 ops/s
(97.06%)
10 exists (OR)📈 view plot
🚷 view threshold
3,721.86 ops/s
(-0.01%)Baseline: 3,722.40 ops/s
3,510.91 ops/s
(94.33%)
12 exists (AND)📈 view plot
🚷 view threshold
159,366.33 ops/s
(-4.16%)Baseline: 166,275.49 ops/s
153,091.76 ops/s
(96.06%)
12 exists (OR)📈 view plot
🚷 view threshold
3,175.05 ops/s
(+0.69%)Baseline: 3,153.29 ops/s
2,966.55 ops/s
(93.43%)
12 level nesting📈 view plot
🚷 view threshold
2,743.98 ops/s
(+0.09%)Baseline: 2,741.54 ops/s
2,568.68 ops/s
(93.61%)
2 exists (AND): track.exists(album).exists(genre)📈 view plot
🚷 view threshold
4,811.55 ops/s
(-0.92%)Baseline: 4,856.15 ops/s
4,579.41 ops/s
(95.18%)
3 exists (AND)📈 view plot
🚷 view threshold
1,912.56 ops/s
(+0.52%)Baseline: 1,902.63 ops/s
1,798.18 ops/s
(94.02%)
3 exists (OR)📈 view plot
🚷 view threshold
957.59 ops/s
(+1.16%)Baseline: 946.58 ops/s
884.48 ops/s
(92.36%)
5 exists (AND)📈 view plot
🚷 view threshold
301.43 ops/s
(+0.85%)Baseline: 298.89 ops/s
281.26 ops/s
(93.31%)
5 exists (OR)📈 view plot
🚷 view threshold
157.96 ops/s
(+0.38%)Baseline: 157.36 ops/s
148.19 ops/s
(93.81%)
Nested 2 levels: track > album > artist📈 view plot
🚷 view threshold
4,279.79 ops/s
(+0.98%)Baseline: 4,238.19 ops/s
3,991.46 ops/s
(93.26%)
Nested 4 levels: playlist > tracks > album > artist📈 view plot
🚷 view threshold
693.32 ops/s
(+0.22%)Baseline: 691.81 ops/s
651.72 ops/s
(94.00%)
Nested with filters: track > album > artist (filtered)📈 view plot
🚷 view threshold
3,527.90 ops/s
(+0.75%)Baseline: 3,501.72 ops/s
3,289.10 ops/s
(93.23%)
planned: playlist.exists(tracks)📈 view plot
🚷 view threshold
559.82 ops/s
(+62.38%)Baseline: 344.77 ops/s
-2.20 ops/s
(-0.39%)
planned: track.exists(album) OR exists(genre)📈 view plot
🚷 view threshold
143.84 ops/s
(+10.01%)Baseline: 130.75 ops/s
104.35 ops/s
(72.54%)
planned: track.exists(album) where title="Big Ones"📈 view plot
🚷 view threshold
6,734.55 ops/s
(+3.06%)Baseline: 6,534.60 ops/s
5,874.38 ops/s
(87.23%)
planned: track.exists(album).exists(genre)📈 view plot
🚷 view threshold
35.12 ops/s
(+117.19%)Baseline: 16.17 ops/s
-15.84 ops/s
(-45.10%)
planned: track.exists(album).exists(genre) with filters📈 view plot
🚷 view threshold
4,735.02 ops/s
(+67.20%)Baseline: 2,831.91 ops/s
-382.26 ops/s
(-8.07%)
planned: track.exists(playlists)📈 view plot
🚷 view threshold
3.56 ops/s
(+59.86%)Baseline: 2.23 ops/s
-0.11 ops/s
(-3.09%)
unplanned: playlist.exists(tracks)📈 view plot
🚷 view threshold
540.96 ops/s
(+60.93%)Baseline: 336.15 ops/s
-2.89 ops/s
(-0.54%)
unplanned: track.exists(album) OR exists(genre)📈 view plot
🚷 view threshold
40.10 ops/s
(+53.00%)Baseline: 26.21 ops/s
2.18 ops/s
(5.44%)
unplanned: track.exists(album) where title="Big Ones"📈 view plot
🚷 view threshold
50.20 ops/s
(-1.80%)Baseline: 51.12 ops/s
48.36 ops/s
(96.33%)
unplanned: track.exists(album).exists(genre)📈 view plot
🚷 view threshold
34.16 ops/s
(+112.10%)Baseline: 16.10 ops/s
-15.74 ops/s
(-46.10%)
unplanned: track.exists(album).exists(genre) with filters📈 view plot
🚷 view threshold
50.05 ops/s
(+0.47%)Baseline: 49.81 ops/s
47.48 ops/s
(94.86%)
unplanned: track.exists(playlists)📈 view plot
🚷 view threshold
3.58 ops/s
(+60.82%)Baseline: 2.23 ops/s
-0.10 ops/s
(-2.68%)
zpg: all playlists📈 view plot
🚷 view threshold
5.11 ops/s
(+25.06%)Baseline: 4.09 ops/s
0.53 ops/s
(10.42%)
zql: all playlists📈 view plot
🚷 view threshold
6.72 ops/s
(+6.83%)Baseline: 6.29 ops/s
5.02 ops/s
(74.64%)
zql: edit for limited query, inside the bound📈 view plot
🚷 view threshold
190,348.33 ops/s
(-1.28%)Baseline: 192,820.52 ops/s
181,171.87 ops/s
(95.18%)
zql: edit for limited query, outside the bound📈 view plot
🚷 view threshold
197,410.33 ops/s
(-2.57%)Baseline: 202,618.84 ops/s
186,129.20 ops/s
(94.29%)
zql: push into limited query, inside the bound📈 view plot
🚷 view threshold
93,289.65 ops/s
(-14.66%)Baseline: 109,320.16 ops/s
90,075.50 ops/s
(96.55%)
zql: push into limited query, outside the bound📈 view plot
🚷 view threshold
342,022.90 ops/s
(-8.78%)Baseline: 374,928.60 ops/s
333,348.60 ops/s
(97.46%)
zql: push into unlimited query📈 view plot
🚷 view threshold
295,277.31 ops/s
(-21.15%)Baseline: 374,487.43 ops/s
243,695.21 ops/s
(82.53%)
zqlite: all playlists📈 view plot
🚷 view threshold
1.60 ops/s
(+2.23%)Baseline: 1.57 ops/s
1.44 ops/s
(89.76%)
zqlite: edit for limited query, inside the bound📈 view plot
🚷 view threshold
68,172.59 ops/s
(+3.87%)Baseline: 65,633.80 ops/s
60,822.55 ops/s
(89.22%)
zqlite: edit for limited query, outside the bound📈 view plot
🚷 view threshold
65,628.63 ops/s
(-2.17%)Baseline: 67,084.88 ops/s
59,933.22 ops/s
(91.32%)
zqlite: push into limited query, inside the bound📈 view plot
🚷 view threshold
3,669.99 ops/s
(-1.64%)Baseline: 3,731.13 ops/s
3,561.10 ops/s
(97.03%)
zqlite: push into limited query, outside the bound📈 view plot
🚷 view threshold
80,590.33 ops/s
(-0.35%)Baseline: 80,873.72 ops/s
74,332.33 ops/s
(92.23%)
zqlite: push into unlimited query📈 view plot
🚷 view threshold
115,755.99 ops/s
(-4.82%)Baseline: 121,624.26 ops/s
104,390.75 ops/s
(90.18%)
🐰 View full continuous benchmarking report in Bencher

@tantaman tantaman changed the title fix(zero-server)!: skip the mutation if the retry tx succeeds fix(zero-server): skip the mutation if the retry tx succeeds Mar 4, 2026
@tantaman tantaman added this pull request to the merge queue Mar 4, 2026
Merged via the queue into main with commit 5d1a195 Mar 4, 2026
31 of 32 checks passed
@tantaman tantaman deleted the mlaw/app-error branch March 4, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant