[DO NOT MERGE] POC: Tessar query materialization - #6085
Draft
christse wants to merge 8 commits into
Draft
Conversation
Contributor
Preview deploymentsHost Test Results 1 files 1 suites 2h 12m 22s ⏱️ Results for commit fead7a1. Realm Server Test Results 1 files 210 suites 1h 14m 13s ⏱️ Results for commit fead7a1. For more details on these errors, see this check. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background and Goal
DO NOT MERGE — active Tessar POC. Shared dashboard readers currently reconstruct query inputs and repeat computed work. Tessar investigates consuming indexed outputs and using reverse query watches to refresh only affected saved views.
The first implementation increments add an explicit internal snapshot reader, a reverse matcher using the existing Boxel SQL query compiler, and a durable Postgres watch registry with conservative candidate routing and publication guards. A deterministic synthetic generator supports smoke, 1,255-instance and 12,550-instance datasets. No production records are copied.
Where to start
docs/tessar-query-materialization-plan.mddescribes the contract, implementation stages and required benchmark report.packages/base/field-support.tsandcard-api.gtshold snapshot values independently of authored data and keep query membership without eager graph hydration.packages/runtime-common/tessar-query-registry.tsstores watches and dirty revision requirements. The exact predicate verifier reusesindex-query-engine.ts.scripts/tessar/provides fabricated datasets and an independent correctness oracle.Key decisions and non-obvious mechanics
Use an isolated local worktree runtime for this experiment. The private definition fork does not make a shared staging backend run this branch. Do not merge, enable auto-merge, or deploy these runtime changes to production.