Skip to content

perf(queries): skip unchanged tables with change summaries - #14

Merged
Stephanvs merged 1 commit into
mainfrom
feat/step7-block-change-summaries
Nov 1, 2026
Merged

Stephanvs merged 1 commit into
mainfrom
feat/step7-block-change-summaries

Conversation

@Stephanvs

Copy link
Copy Markdown
Owner

Change-filtered queries currently inspect every row even when an archetype has no new stamps. Add per-column added and changed summaries so generated queries skip those tables, while preserving exact row filtering for [Each] and named queries. [EachBlock] now accepts Added<T> and Changed<T> at block granularity, and AV011 is retired.

Update all tracked write and row-migration paths to maintain the summaries. Add runtime and generator coverage, sparse-change and tick-width benchmarks, and consumer documentation. The recorded step 7 benchmarks show the sparse 100,000-entity workload at 0.16 of its previous time. Keep 64-bit ticks because the measured 32-bit gains do not justify the extra complexity.

Validation:

  • ./scripts/verify.ps1, including 167 tests, package consumers, Native AOT, sample verification, and allocation smoke checks.
  • pnpm run test:release, all 21 tests passed.
  • pnpm run build.
  • git diff --cached --check.

Full benchmark comparisons are recorded in benchmarks/step7-block-change-summaries.md; they were not rerun for this commit.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://feat-step7-block-change-summaries-archevolt.hayman.workers.dev (commit 69fffaf)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://fcb944ff-archevolt.hayman.workers.dev 69fffaf 2026-11-01T21:12:54.900Z Visit the dashboard ↗

@Stephanvs
Stephanvs merged commit d5beef0 into main Nov 1, 2026
2 checks passed
@Stephanvs
Stephanvs deleted the feat/step7-block-change-summaries branch November 1, 2026 21:35
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