Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(zero-client): Allow overlapped mutators. #3757

Merged
merged 1 commit into from
Feb 11, 2025
Merged

Conversation

aboodman
Copy link
Contributor

@aboodman aboodman requested a review from grgbkr February 11, 2025 06:51
Copy link

vercel bot commented Feb 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
replicache-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 11, 2025 6:55am
zbugs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 11, 2025 6:55am

Copy link

github-actions bot commented Feb 11, 2025

🐰 Bencher Report

Branchaa/overlapped-mutations
Testbedlocalhost
Click to view all benchmark results
BenchmarkFile SizeBenchmark Result
kilobytes (KB)
(Result Δ%)
Upper Boundary
kilobytes (KB)
(Limit %)
zero-package.tgz📈 view plot
🚷 view threshold
950.46
(-0.02%)Baseline: 950.64
969.65
(98.02%)
zero.js📈 view plot
🚷 view threshold
178.98
(-0.07%)Baseline: 179.10
182.68
(97.98%)
zero.js.br📈 view plot
🚷 view threshold
49.78
(-0.04%)Baseline: 49.79
50.79
(98.00%)
🐰 View full continuous benchmarking report in Bencher

Copy link

github-actions bot commented Feb 11, 2025

🐰 Bencher Report

Branchaa/overlapped-mutations
Testbedlocalhost
Click to view all benchmark results
BenchmarkThroughputBenchmark Result
operations / second (ops/s)
(Result Δ%)
Lower Boundary
operations / second (ops/s)
(Limit %)
src/client/zero.bench.ts > basics > All 1000 rows x 10 columns (numbers)📈 view plot
🚷 view threshold
74.54
(-0.49%)Baseline: 74.91
69.31
(92.99%)
src/client/zero.bench.ts > with filter > Lower rows 500 x 10 columns (numbers)📈 view plot
🚷 view threshold
93.61
(-0.94%)Baseline: 94.50
90.11
(96.26%)
🐰 View full continuous benchmarking report in Bencher

@aboodman aboodman force-pushed the aa/overlapped-mutations branch from 9d69ffd to fb6d186 Compare February 11, 2025 06:53
@aboodman aboodman merged commit f83a421 into main Feb 11, 2025
11 checks passed
@aboodman aboodman deleted the aa/overlapped-mutations branch February 11, 2025 07:14
@arv
Copy link
Contributor

arv commented Feb 11, 2025

I would like to see/test what the push body looks like. All the calls to mutate inside a batch should be batched. I think this is where the problems show up. The CRUD mutators you get through the mutateBatch argument all get grouped into a single CRUD mutation. If you use z.mutate in there you will get multiple mutations and the order is probably not what you expect.

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.

2 participants