fix(db): publish optimistic ordered-window departures immediately #2177
main fromrefs/pull/2177/head·merged by KyleAMathews(GitHub profile, opens in a new tab) What changes#
An optimistic update or delete now makes its row leave an ordered live query immediately. The view can be short while an on-demand provider fetches a replacement. The provider write becomes public when it applies.
For example, a descending window starts at [3, 2]. An optimistic update moves row 3 out of the query. The window publishes [2] at mutation admission. If row 1 is not installed, the provider fetches it. The window publishes [2, 1] after that write applies. If row 1 is already installed, local recomputation can publish [2, 1] immediately. An isolated rollback restores [3, 2].
Why it works#
The ordered loader distinguishes an optimistic overlay from an authoritative loss of source order. It sends the optimistic change into the live-query graph and permits bounded refill work. It does not start an authoritative repair for that overlay. A non-optimistic source-order change still uses the complete-window repair barrier from #2131.
This rule applies to live-query Collections and Effects. The architecture document defines when a short window can publish and when an accepted provider write can become public.
Oracle evidence#
The core ordered-work oracle checks immediate rows, callbacks, acquisition, held provider writes, settlement, and later task turns. Its 96-case matrix crosses source, joined, and anti-joined filters. It also crosses updates, deletes, Collections, Effects, acknowledgement, rollback, window widths, and indexed or unindexed loading. Adjacent histories cover ascending joins, offsets, ties, installed extent, late answers, and marker-side changes.
A real Query DB oracle holds the optimistic update while its mutation handler calls utils.refetch(). It checks the immediate [2], a bounded refill, and the final [2, 1] callback. Restoring the old loader classification fails at the immediate checkpoint.
PR #2154 is now merged into this branch. The Query DB oracle also invalidates a shifted ordered page while the optimistic update persists. Query DB reports the shift, and the loader starts a bounded request after that report. The public window stays [2] until persistence settles, then publishes [5, 2]. A mutant that ignores the report fails at the request checkpoint.
Limits#
The controlled ascending joined and anti-joined histories reach the shape reported in #2148. That issue does not include a complete historical provider schedule for an exact replay. The new report-triggered history covers one held optimistic update and one inserted provider head. It does not cover every refetch shape or a second optimistic change during held repair.
This PR does not promise immediate rank-only rollback. Provider rejection, overlapping optimistic transactions, exact callback payloads, and framework render timing need separate witnesses. The coverage map and review record name the owners and limits.
Verification#
- The combined core ordered oracles passed: 976 tests.
- The full Query DB suite passed: 1,383 tests, with 2 skipped.
- The new report-triggered receiver test passed after the merge.
- The DB and Query DB TypeScript projects passed
tsc --noEmit. - ESLint and formatting checks reported no errors on the changed files.
- CI for the latest push is pending.
Checklist#
- I have tested this code locally with
pnpm test.
Release impact#
- This change affects published code, and I have generated a changeset.
- This change is docs/CI/dev-only (no release).
Summary by CodeRabbit#
- Behavior
- Ordered live-query windows now show optimistic row removals immediately, even while replacement rows are being fetched. The window may temporarily contain fewer rows while a refill is pending.
- Provider-backed replacement rows remain hidden until their updates are applied. Applied updates can refill the window, while a rollback recalculates it from the remaining changes.
- Documentation
- Clarified ordered-window behavior during optimistic updates, refills, and rollbacks.
- Added guidance on coverage ownership and review evidence for ordered-window behavior.
- 1
Incremental update benchmark#
Comparing
d73abe2d(this PR) against92b11b00(base). Write times are per-write medians over 100 iterations (20 warmup writes). Cold hydrate is one timed first load of each query.Overall median write time vs base: 0.82× · cold hydrate time: 0.96× (geometric mean of per-case ratios; lower is faster).
Writes: 2 regression(s), 8 improvement(s) (threshold: ±20% and >0.05ms).
Cold hydrate: 2 regression(s), 0 improvement(s) (threshold: ±50% and >5ms).
Per-case flags are noisy on shared runners. Read the geometric means first.Writes#
Query Δ median write time (geomean) Best case Worst case Flags list: newest 50 open -46.1% -99.4% +21.2% 7 🟢 list + author -0.2% -15.9% +8.4% — list + comment count +3.2% -11.1% +49.6% 1 🔴 list + 3 recent comments -0.8% -28.0% +9.7% 1 🟢 issue detail + comments +2.0% -13.4% +75.6% 1 🔴 Cold hydrate#
Query Δ cold hydrate time (geomean) Best case Worst case Flags list: newest 50 open -8.7% -50.1% +34.0% — list + author -8.0% -66.3% +71.2% 1 🔴 list + comment count -7.3% -43.8% +13.8% — list + 3 recent comments +2.7% -44.1% +67.9% — issue detail + comments +8.5% -26.6% +121.7% 1 🔴 Each row aggregates the 14.4 scale/index/write-mode configurations of that query; per-configuration tables below.
100 rows/collection | source indexes: none | synced writes — geomean 0.99×, cold 0.89×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.208ms 0.208ms -0.1% 0.334ms 0.331ms -0.7% 14.581ms 13.436ms -7.8% list: newest 50 open 0.517ms 0.536ms +3.7% 0.849ms 0.838ms -1.2% 3.242ms 2.712ms -16.3% list + author 0.201ms 0.213ms +6.0% 0.343ms 0.350ms +2.2% 8.342ms 8.399ms +0.7% list + comment count 0.394ms 0.351ms -11.1% 0.578ms 0.548ms -5.1% 12.234ms 11.489ms -6.1% list + 3 recent comments 0.218ms 0.219ms +0.2% 0.296ms 0.288ms -2.7% 11.182ms 10.522ms -5.9% issue detail + comments 0.161ms 0.158ms -2.1% 0.255ms 0.275ms +7.8% 1.983ms 1.456ms -26.6% 100 rows/collection | source indexes: none | optimistic writes — geomean 0.77×, cold 1.01×, 1 change(s)
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.138ms 0.137ms -1.3% 0.224ms 0.236ms +5.6% 2.475ms 2.909ms +17.5% list: newest 50 open 0.365ms 0.093ms -74.5% 0.616ms 0.168ms -72.8% 🟢 2.292ms 1.615ms -29.6% list + author 0.189ms 0.159ms -15.9% 0.291ms 0.278ms -4.3% 3.989ms 3.707ms -7.1% list + comment count 0.224ms 0.229ms +2.5% 0.370ms 0.361ms -2.2% 5.091ms 4.450ms -12.6% list + 3 recent comments 0.134ms 0.138ms +2.7% 0.236ms 0.261ms +10.8% 6.461ms 7.921ms +22.6% issue detail + comments 0.174ms 0.157ms -9.7% 0.251ms 0.211ms -15.7% 0.948ms 1.193ms +25.9% 100 rows/collection | source indexes: manual | synced writes — geomean 1.02×, cold 1.04×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.141ms 0.147ms +4.8% 0.185ms 0.200ms +8.4% 3.450ms 3.479ms +0.8% list: newest 50 open 0.440ms 0.439ms -0.4% 0.686ms 0.695ms +1.3% 1.273ms 1.309ms +2.8% list + author 0.125ms 0.131ms +4.1% 0.186ms 0.220ms +18.1% 3.945ms 3.856ms -2.2% list + comment count 0.249ms 0.249ms -0.1% 0.437ms 0.457ms +4.5% 3.490ms 3.899ms +11.7% list + 3 recent comments 0.166ms 0.173ms +4.6% 0.205ms 0.302ms +47.4% 4.422ms 4.556ms +3.0% issue detail + comments 0.123ms 0.124ms +0.9% 0.232ms 0.206ms -11.2% 0.562ms 0.596ms +6.1% 100 rows/collection | source indexes: manual | optimistic writes — geomean 0.83×, cold 0.98×, 1 change(s)
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.108ms 0.109ms +0.9% 0.195ms 0.198ms +1.7% 0.911ms 1.220ms +34.0% list: newest 50 open 0.294ms 0.087ms -70.3% 0.498ms 0.181ms -63.6% 🟢 1.015ms 1.019ms +0.4% list + author 0.144ms 0.144ms -0.3% 0.243ms 0.237ms -2.3% 2.886ms 2.724ms -5.6% list + comment count 0.199ms 0.203ms +2.1% 0.332ms 0.330ms -0.4% 3.481ms 3.043ms -12.6% list + 3 recent comments 0.129ms 0.129ms +0.2% 0.230ms 0.251ms +9.0% 4.544ms 4.374ms -3.7% issue detail + comments 0.105ms 0.110ms +4.5% 0.145ms 0.150ms +3.0% 0.621ms 0.522ms -15.9% 1,000 rows/collection | source indexes: none | synced writes — geomean 1.09×, cold 0.96×, 4 change(s)
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.095ms 0.086ms -9.3% 0.174ms 0.161ms -7.2% 12.678ms 7.436ms -41.3% list: newest 50 open 1.118ms 1.139ms +1.8% 2.101ms 2.096ms -0.2% 7.536ms 6.333ms -16.0% list + author 0.127ms 0.120ms -4.9% 0.210ms 0.205ms -2.2% 22.078ms 37.801ms +71.2% 🔴 list + comment count 0.213ms 0.319ms +49.6% 0.327ms 0.449ms +37.2% 🔴 16.627ms 15.358ms -7.6% list + 3 recent comments 0.205ms 0.148ms -28.0% 0.351ms 0.285ms -18.8% 🟢 14.643ms 11.153ms -23.8% issue detail + comments 0.097ms 0.170ms +75.6% 0.143ms 0.218ms +52.2% 🔴 1.306ms 1.728ms +32.3% 1,000 rows/collection | source indexes: none | optimistic writes — geomean 0.56×, cold 0.84×, 2 change(s)
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.176ms 0.117ms -33.9% 0.218ms 0.206ms -5.3% 🟢 12.117ms 12.360ms +2.0% list: newest 50 open 1.242ms 0.065ms -94.7% 1.910ms 0.092ms -95.2% 🟢 10.199ms 5.303ms -48.0% list + author 0.131ms 0.128ms -2.7% 0.162ms 0.158ms -2.5% 21.605ms 21.277ms -1.5% list + comment count 0.195ms 0.191ms -2.0% 0.293ms 0.297ms +1.4% 11.846ms 9.057ms -23.5% list + 3 recent comments 0.120ms 0.115ms -4.2% 0.188ms 0.142ms -24.3% 10.849ms 10.100ms -6.9% issue detail + comments 0.108ms 0.105ms -2.7% 0.141ms 0.133ms -6.2% 1.257ms 1.146ms -8.8% 1,000 rows/collection | source indexes: manual | synced writes — geomean 0.98×, cold 0.72×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.082ms 0.080ms -2.7% 0.108ms 0.107ms -1.0% 0.985ms 1.008ms +2.4% list: newest 50 open 0.305ms 0.312ms +2.0% 0.561ms 0.556ms -0.8% 1.140ms 0.762ms -33.1% list + author 0.109ms 0.110ms +0.4% 0.154ms 0.208ms +35.0% 5.078ms 1.712ms -66.3% list + comment count 0.231ms 0.231ms -0.4% 0.369ms 0.405ms +9.7% 2.649ms 2.791ms +5.4% list + 3 recent comments 0.154ms 0.147ms -4.4% 0.204ms 0.181ms -11.4% 10.180ms 5.688ms -44.1% issue detail + comments 0.114ms 0.110ms -3.9% 0.144ms 0.139ms -3.5% 0.426ms 0.420ms -1.6% 1,000 rows/collection | source indexes: manual | optimistic writes — geomean 0.79×, cold 1.06×, 1 change(s)
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.095ms 0.095ms +0.3% 0.125ms 0.125ms +0.2% 0.805ms 0.746ms -7.3% list: newest 50 open 0.295ms 0.075ms -74.7% 0.438ms 0.131ms -70.0% 🟢 0.846ms 0.813ms -3.9% list + author 0.121ms 0.122ms +0.5% 0.198ms 0.163ms -17.5% 1.945ms 1.892ms -2.7% list + comment count 0.201ms 0.214ms +6.8% 0.320ms 0.347ms +8.4% 2.672ms 2.742ms +2.6% list + 3 recent comments 0.129ms 0.125ms -3.3% 0.159ms 0.160ms +0.8% 3.691ms 3.832ms +3.8% issue detail + comments 0.116ms 0.109ms -6.3% 0.210ms 0.142ms -32.2% 0.376ms 0.586ms +55.8% 10,000 rows/collection | source indexes: none | synced writes — geomean 0.97×, cold 1.03×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.123ms 0.091ms -26.2% 0.168ms 0.148ms -12.0% 73.594ms 71.888ms -2.3% list: newest 50 open 10.267ms 10.674ms +4.0% 11.156ms 12.848ms +15.2% 63.539ms 73.720ms +16.0% list + author 0.175ms 0.175ms +0.2% 0.216ms 0.217ms +0.6% 217.433ms 200.255ms -7.9% list + comment count 0.218ms 0.217ms -0.6% 0.362ms 0.299ms -17.3% 90.014ms 92.209ms +2.4% list + 3 recent comments 0.134ms 0.139ms +4.3% 0.163ms 0.249ms +53.0% 78.071ms 90.171ms +15.5% issue detail + comments 0.100ms 0.102ms +2.5% 0.139ms 0.159ms +14.1% 5.620ms 5.309ms -5.5% 10,000 rows/collection | source indexes: none | optimistic writes — geomean 0.45×, cold 1.13×, 2 change(s)
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.098ms 0.110ms +12.6% 0.153ms 0.181ms +18.6% 64.077ms 64.493ms +0.6% list: newest 50 open 11.283ms 0.070ms -99.4% 11.945ms 0.119ms -99.0% 🟢 68.986ms 64.697ms -6.2% list + author 0.122ms 0.131ms +7.5% 0.181ms 0.178ms -2.0% 198.280ms 191.385ms -3.5% list + comment count 0.218ms 0.224ms +2.8% 0.374ms 0.269ms -28.1% 80.968ms 81.072ms +0.1% list + 3 recent comments 0.114ms 0.121ms +5.8% 0.141ms 0.149ms +5.9% 72.584ms 74.959ms +3.3% issue detail + comments 0.114ms 0.114ms +0.5% 0.235ms 0.139ms -40.8% 4.958ms 10.989ms +121.7% 🔴 10,000 rows/collection | source indexes: manual | synced writes — geomean 1.06×, cold 1.14×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.080ms 0.097ms +21.2% 0.109ms 0.138ms +27.1% 2.839ms 3.273ms +15.3% list: newest 50 open 0.934ms 0.968ms +3.6% 1.062ms 1.521ms +43.1% 1.617ms 2.000ms +23.6% list + author 0.100ms 0.108ms +8.4% 0.172ms 0.195ms +13.2% 2.495ms 2.646ms +6.1% list + comment count 0.213ms 0.228ms +7.3% 0.249ms 0.259ms +4.2% 3.541ms 4.031ms +13.8% list + 3 recent comments 0.142ms 0.156ms +9.7% 0.188ms 0.184ms -2.2% 5.016ms 7.366ms +46.9% issue detail + comments 0.127ms 0.110ms -13.4% 0.228ms 0.137ms -40.1% 0.680ms 0.579ms -14.8% Runner: node v24.8.0, linux 6.17.0-1022-azure, AMD EPYC 7763 64-Core Processor. Timings on shared CI runners are noisy; treat small deltas as indicative only.10,000 rows/collection | source indexes: manual | optimistic writes — geomean 0.65×, cold 0.86×, 1 change(s)
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold list: newest 50 open 0.112ms 0.108ms -3.8% 0.195ms 0.195ms -0.1% 3.293ms 1.643ms -50.1% list: newest 50 open 0.933ms 0.077ms -91.7% 1.100ms 0.105ms -90.4% 🟢 1.702ms 1.786ms +4.9% list + author 0.128ms 0.124ms -3.2% 0.159ms 0.200ms +25.8% 3.554ms 2.917ms -17.9% list + comment count 0.264ms 0.243ms -7.8% 0.417ms 0.298ms -28.6% 6.176ms 3.473ms -43.8% list + 3 recent comments 0.136ms 0.147ms +8.3% 0.235ms 0.240ms +1.9% 4.371ms 7.337ms +67.9% issue detail + comments 0.118ms 0.116ms -1.1% 0.146ms 0.144ms -1.7% 0.622ms 0.605ms -2.7% Note
Reviews paused#
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
reviews.auto_review.auto_pause_after_reviewed_commitssetting.- Last reviewed commit: c8af03995012b1390fd2b678a1f7310a47241c2b
- Latest commit, not reviewed: a1a17dbe81c8c569dc6bd211a0bc4643bb959118
Use the following commands to manage reviews:
@coderabbitai resumeto resume automatic reviews.@coderabbitai reviewto trigger a single review.
Use the checkboxes below for quick actions:
- ▶️ Resume reviews
- 🔍 Trigger review
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
4225ec58-5e54-4e63-8282-18defa0354c6
📥 Commits
-
Reviewing files that changed from the base of the PR and between 247a8513c261b6afa605c6272605db1cbb9e58fd and c8af03995012b1390fd2b678a1f7310a47241c2b.
📒 Files selected for processing: 1
-
packages/db/src/query/live/ordered-source-loader.ts
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
-
📝 Walkthrough
-
The ordered source loader now receives optimistic-overlay state. When an optimistic departure leaves a non-eager ordered window short, the loader can request a refill. Tests and documentation describe immediate publication, bounded acquisition, and settlement behavior.
Changes: Optimistic Ordered-Window Refills
Layer / File(s) Summary Overlay-aware source-change classification
packages/db/src/query/effect.ts,packages/db/src/query/live/collection-subscriber.ts,packages/db/src/query/live/ordered-source-loader.ts,packages/db/tests/query/ordered-source-loader-oracle.test.ts,packages/db/src/query/live/ARCHITECTURE.mdThe Effect and Collection subscriber pass an overlay lookup to the loader. For qualifying overlaid deletes or order-changing updates, the loader can mark a refill and invalidate its cursor when the remaining local rows do not fill the window. The architecture document describes publication and settlement boundaries. Oracle observations and validation
packages/db/tests/query/ordered-work-oracle.property.test.ts,docs/contributing/oracle-reviews/issue-2169-optimistic-window.md,docs/contributing/oracle-coverage.mdThe oracle checks publication, bounded refill acquisition, request constraints, and settlement across query shapes and loading modes. The review and coverage documents record test evidence and remaining scope. Query DB refetch receiver
packages/query-db-collection/tests/optimistic-ordered-refetch-oracle.test.tsThe test checks immediate publication of an optimistic departure, bounded refill requests while persistence is pending, and the settled window after the mutation handler refetches. Package changeset
.changeset/verify-optimistic-window-refills.mdThe changeset records the patch for @tanstack/db.Priority: ➖ Normal
Estimated code review effort: 3 (Moderate) | ~25 minutes
Change: Bug fix
Sequence Diagram(s)#
sequenceDiagram participant Effect participant CollectionSubscriber participant OrderedSourceLoader participant Provider Effect->>OrderedSourceLoader: Pass changes and overlay lookup CollectionSubscriber->>OrderedSourceLoader: Pass ordered changes and overlay lookup OrderedSourceLoader->>Provider: Request refill when the window is short
Merge Risk: ⚪ Minimal · up to
c8af0-
Optimistic departures can publish before bounded refill, while authoritative ordering losses retain their repair barrier. No actionable merge-blocking issue was identified in the reviewed change.
Pre-merge checks:
4 · 1-
Failed checks: 1 warningCheck name Status Explanation Resolution Docstring Coverage Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 6 files. Write docstrings for the functions missing them to satisfy the coverage threshold. Passed checks: 4 passed-
Check name Status Explanation Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Title check The title clearly and concisely describes the primary change: immediate publication of optimistic ordered-window departures. Description check The description explains the change, motivation, implementation, evidence, limits, verification, and release impact. It includes equivalent sections for the template requirements and records a generat… Full details: Description check
-
Explanation
The description explains the change, motivation, implementation, evidence, limits, verification, and release impact. It includes equivalent sections for the template requirements and records a generated changeset. The local
pnpm testchecklist remains unchecked, although focused and full-suite verification is reported.
-
-
- Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment `@coderabbitai help` to get the list of available commands.More templates
- todos
- offline-first-electron
- @tanstack/db-example-react-action-enforcement
- @tanstack/db-example-react-next-ssr-e2e
- tanstack-start-example-basic
- @tanstack/db-example-paced-mutations-demo
- tanstack-start-db-projects-example
- @tanstack/db-example-react-start-ssr-e2e
- @tanstack/db-example-react-todo
- offline-transactions-react-native
- shopping-list-react-native
- @tanstack/db-example-solid-todo
@tanstack/angular-db
npm i https://pkg.pr.new/@tanstack/angular-db@2177@tanstack/browser-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/browser-db-sqlite-persistence@2177@tanstack/capacitor-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/capacitor-db-sqlite-persistence@2177@tanstack/cloudflare-durable-objects-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/cloudflare-durable-objects-db-sqlite-persistence@2177@tanstack/db
npm i https://pkg.pr.new/@tanstack/db@2177@tanstack/db-ivm
npm i https://pkg.pr.new/@tanstack/db-ivm@2177@tanstack/db-sqlite-persistence-core
npm i https://pkg.pr.new/@tanstack/db-sqlite-persistence-core@2177@tanstack/electric-db-collection
npm i https://pkg.pr.new/@tanstack/electric-db-collection@2177@tanstack/electron-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/electron-db-sqlite-persistence@2177@tanstack/expo-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/expo-db-sqlite-persistence@2177@tanstack/node-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/node-db-sqlite-persistence@2177@tanstack/offline-transactions
npm i https://pkg.pr.new/@tanstack/offline-transactions@2177@tanstack/powersync-db-collection
npm i https://pkg.pr.new/@tanstack/powersync-db-collection@2177@tanstack/query-db-collection
npm i https://pkg.pr.new/@tanstack/query-db-collection@2177@tanstack/react-db
npm i https://pkg.pr.new/@tanstack/react-db@2177@tanstack/react-native-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/react-native-db-sqlite-persistence@2177@tanstack/react-router-with-db
npm i https://pkg.pr.new/@tanstack/react-router-with-db@2177@tanstack/rxdb-db-collection
npm i https://pkg.pr.new/@tanstack/rxdb-db-collection@2177@tanstack/solid-db
npm i https://pkg.pr.new/@tanstack/solid-db@2177@tanstack/svelte-db
npm i https://pkg.pr.new/@tanstack/svelte-db@2177@tanstack/tauri-db-sqlite-persistence
npm i https://pkg.pr.new/@tanstack/tauri-db-sqlite-persistence@2177@tanstack/trailbase-db-collection
npm i https://pkg.pr.new/@tanstack/trailbase-db-collection@2177@tanstack/vue-db
npm i https://pkg.pr.new/@tanstack/vue-db@2177commit:
a1a17dbSize Change: +168 B (+0.08%)
Total Size: 217 kB
📦 View Changed
Filename Size Change packages/db/dist/esm/query/effect.js5.36 kB +52 B (+0.98%) packages/db/dist/esm/query/live/collection-subscriber.js2.28 kB +32 B (+1.42%) packages/db/dist/esm/query/live/ordered-source-loader.js5.35 kB +84 B (+1.59%) compressed-size-action::db-and-react-package-sizeℹ️ View Unchanged
Filename Size packages/db/dist/esm/client.js4.22 kB packages/db/dist/esm/collection-options-brand.js219 B packages/db/dist/esm/collection-options.js258 B packages/db/dist/esm/collection/change-events.js1.76 kB packages/db/dist/esm/collection/changes.js2.96 kB packages/db/dist/esm/collection/cleanup-queue.js901 B packages/db/dist/esm/collection/config-errors.js547 B packages/db/dist/esm/collection/events.js481 B packages/db/dist/esm/collection/index.js5.27 kB packages/db/dist/esm/collection/indexes.js2.3 kB packages/db/dist/esm/collection/lifecycle.js2.94 kB packages/db/dist/esm/collection/mutations.js2.99 kB packages/db/dist/esm/collection/state.js7.16 kB packages/db/dist/esm/collection/subscription.js8.9 kB packages/db/dist/esm/collection/sync.js5.4 kB packages/db/dist/esm/collection/validate-config.js1.17 kB packages/db/dist/esm/deferred.js207 B packages/db/dist/esm/error-message.js642 B packages/db/dist/esm/errors.js6.53 kB packages/db/dist/esm/event-emitter.js1.06 kB packages/db/dist/esm/index.js4.52 kB packages/db/dist/esm/indexed-db-wrapper.js1.91 kB packages/db/dist/esm/indexed-db.js3.7 kB packages/db/dist/esm/indexes/auto-index.js926 B packages/db/dist/esm/indexes/base-index.js1.92 kB packages/db/dist/esm/indexes/basic-index.js1.93 kB packages/db/dist/esm/indexes/btree-index.js1.62 kB packages/db/dist/esm/indexes/index-registry.js916 B packages/db/dist/esm/indexes/reverse-index.js1.01 kB packages/db/dist/esm/live-query-adapter.js338 B packages/db/dist/esm/live-query-observer.js4.8 kB packages/db/dist/esm/live-query-options.js1.41 kB packages/db/dist/esm/live-query-window-controller.js4.27 kB packages/db/dist/esm/local-only.js1.08 kB packages/db/dist/esm/local-storage.js3.93 kB packages/db/dist/esm/optimistic-action.js359 B packages/db/dist/esm/paced-mutations.js1.11 kB packages/db/dist/esm/persisted-readiness.js195 B packages/db/dist/esm/proxy.js3.51 kB packages/db/dist/esm/query/builder/clone-query.js849 B packages/db/dist/esm/query/builder/functions.js1.56 kB packages/db/dist/esm/query/builder/index.js7.48 kB packages/db/dist/esm/query/builder/query-ir.js312 B packages/db/dist/esm/query/builder/ref-proxy-identity.js292 B packages/db/dist/esm/query/builder/ref-proxy.js1.67 kB packages/db/dist/esm/query/builder/wrapper-identity.js221 B packages/db/dist/esm/query/compiler/evaluators.js2.51 kB packages/db/dist/esm/query/compiler/expressions.js603 B packages/db/dist/esm/query/compiler/group-by.js4.48 kB packages/db/dist/esm/query/compiler/index.js10.3 kB packages/db/dist/esm/query/compiler/joins.js3.42 kB packages/db/dist/esm/query/compiler/lazy-targets.js1.11 kB packages/db/dist/esm/query/compiler/order-by.js2.26 kB packages/db/dist/esm/query/compiler/parent-routes.js319 B packages/db/dist/esm/query/compiler/query-equivalence.js568 B packages/db/dist/esm/query/compiler/route-metadata.js1.24 kB packages/db/dist/esm/query/compiler/select.js1.5 kB packages/db/dist/esm/query/equality-conjunct.js486 B packages/db/dist/esm/query/equality-value-identity.js735 B packages/db/dist/esm/query/expression-helpers.js1.61 kB packages/db/dist/esm/query/ir-stable-identity.js4.2 kB packages/db/dist/esm/query/ir.js2.2 kB packages/db/dist/esm/query/join-conditions.js257 B packages/db/dist/esm/query/live-query-collection.js391 B packages/db/dist/esm/query/live/bucket-facade-adapter.js3.17 kB packages/db/dist/esm/query/live/collection-config-builder.js6.84 kB packages/db/dist/esm/query/live/collection-registry.js264 B packages/db/dist/esm/query/live/graph-scheduler.js305 B packages/db/dist/esm/query/live/internal.js145 B packages/db/dist/esm/query/live/materialized-pipeline.js2.39 kB packages/db/dist/esm/query/live/subset-demand-controller.js1.73 kB packages/db/dist/esm/query/live/utils.js1.35 kB packages/db/dist/esm/query/optimizer.js2.95 kB packages/db/dist/esm/query/pooled-live-query.js4.13 kB packages/db/dist/esm/query/query-once.js359 B packages/db/dist/esm/query/runtime-reference-identity.js630 B packages/db/dist/esm/query/subset-dedupe.js493 B packages/db/dist/esm/scheduler.js1.23 kB packages/db/dist/esm/SortedMap.js1.6 kB packages/db/dist/esm/strategies/commit-completion.js156 B packages/db/dist/esm/strategies/debounceStrategy.js658 B packages/db/dist/esm/strategies/queueStrategy.js523 B packages/db/dist/esm/strategies/serial-pacer.js486 B packages/db/dist/esm/strategies/throttleStrategy.js738 B packages/db/dist/esm/sync-persistence.js626 B packages/db/dist/esm/sync-receipt.js211 B packages/db/dist/esm/transaction-commit-work.js351 B packages/db/dist/esm/transactions.js4.61 kB packages/db/dist/esm/utils.js1.67 kB packages/db/dist/esm/utils/array-utils.js270 B packages/db/dist/esm/utils/browser-polyfills.js304 B packages/db/dist/esm/utils/btree.js3.02 kB packages/db/dist/esm/utils/callbacks.js174 B packages/db/dist/esm/utils/comparison.js1.94 kB packages/db/dist/esm/utils/cursor.js753 B packages/db/dist/esm/utils/error.js262 B packages/db/dist/esm/utils/get-or-create.js155 B packages/db/dist/esm/utils/index-optimization.js2.43 kB packages/db/dist/esm/utils/source-record.js140 B packages/db/dist/esm/utils/type-guards.js230 B packages/db/dist/esm/utils/uuid.js530 B packages/db/dist/esm/virtual-props.js413 B packages/react-db/dist/esm/DbProvider.js317 B packages/react-db/dist/esm/development.js190 B packages/react-db/dist/esm/HydrationBoundary.js263 B packages/react-db/dist/esm/index.js330 B packages/react-db/dist/esm/live-query-internals.js282 B packages/react-db/dist/esm/source-id-bindings.js746 B packages/react-db/dist/esm/useLiveInfiniteQuery.js2.15 kB packages/react-db/dist/esm/useLiveQuery.js3.34 kB packages/react-db/dist/esm/useLiveQueryEffect.js504 B packages/react-db/dist/esm/useLiveSuspenseQuery.js1.33 kB packages/react-db/dist/esm/usePacedMutations.js429 B KyleAMathews(GitHub profile, opens in a new tab) changed the title
KyleAMathews(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
🦋 Changeset detected#
Latest commit: a1a17dbe81c8c569dc6bd211a0bc4643bb959118
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 24 packages
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR