Bound runtime table projections and virtualize rows #61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/issue-52-bounded-tables"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Runtime table editors subscribed to every class and rendered every row. The active runtime table now retains one 100-record SDK page and the shared grid virtualizes its rows. At 1k, 10k and 100k records per class, the end-to-end benchmark retained 100 ORM records and mounted 13 grid rows.
Scope and remaining performance work
Relates to #52; leave the issue open. This PR accepts the bounded-loading improvements independently of the remaining 100k latency work. It does not claim the original sub-second query/navigation goal is met or establish a supported row-count threshold.
The end-to-end 100k run measured 36 ms edit-to-paint, 2.0 s search, 8.4 s sort and 4.2 s Next. The benchmark keeps asserting the original targets and fails those three 100k latency checks. Native queries can block editing despite the sampled edit latency.
The new
pnpm bench:subscriptionsdiagnostic isolates 1/10/100-subject subscriptions at all three graph sizes, with three consecutive samples per case. At 100k, a 100-subject ordered subscription takes about 3.44 s, almost entirely before its initial message; JavaScript row setup takes about 1.4 ms. Its main-thread heartbeat is delayed about 3.43 s. An unordered window still takes about 1.77 s, while a one-subject subscription takes about 3 ms. These results prioritize native multi-subject evaluation/query planning and main-thread responsiveness. Final latency gates need repeated production-build measurements on representative hardware.Behavior, reproduction, raw end-to-end measurements and startup samples are documented in
docs/table-scaling.mdanddocs/benchmarks/. The verifier retains its full graph: at 100k the end-to-end run measured 15.7 MB post-GC V8 heap and 1.6 GB renderer RSS.Validation
WIP: Bound runtime table projections and virtualize rowsto Bound runtime table projections and virtualize rows