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

feat(zero-client): Add TTL type and change default TTL to 0 #3940

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

arv
Copy link
Contributor

@arv arv commented Mar 7, 2025

We introduce a new TTL type that allows you to write '10d' or '1h' instead of just a number of milliseconds.

We also change the default TTL to 0, which means that there will be no
caching.

We introduce a new TTL type that allows you to write '10d' or '1h'
instead of just a number of milliseconds.

 We also change the default TTL to 0, which means that there will be no
 caching.
Copy link

vercel bot commented Mar 7, 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 Mar 7, 2025 2:32pm
zbugs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 2:32pm

Copy link

github-actions bot commented Mar 7, 2025

🐰 Bencher Report

Brancharv/ttl-type
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
1,006.82 KB
(+0.15%)Baseline: 1,005.32 KB
1,025.43 KB
(98.19%)
zero.js📈 view plot
🚷 view threshold
181.20 KB
(+0.09%)Baseline: 181.03 KB
184.66 KB
(98.13%)
zero.js.br📈 view plot
🚷 view threshold
50.62 KB
(+0.16%)Baseline: 50.53 KB
51.55 KB
(98.20%)
🐰 View full continuous benchmarking report in Bencher

@arv arv requested a review from grgbkr March 7, 2025 13:43
Copy link

github-actions bot commented Mar 7, 2025

🐰 Bencher Report

Brancharv/ttl-type
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
89.70 ops/s
(+14.52%)Baseline: 78.33 ops/s
60.60 ops/s
(67.56%)
src/client/zero.bench.ts > with filter > Lower rows 500 x 10 columns (numbers)📈 view plot
🚷 view threshold
107.00 ops/s
(+9.22%)Baseline: 97.96 ops/s
80.14 ops/s
(74.90%)
🐰 View full continuous benchmarking report in Bencher

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