Repository navigation
perf: speed up ontology and Explorer loading - #103
Merged
Merged
Conversation
dcolthorp
force-pushed
the
t3/ontology-query-performance
branch
from
November 6, 2026 13:43
bca59a1 to
b8fbc6a
Compare
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.
Ontology navigation repeated an expensive component layout, while Explorer downloaded the detailed graph to draw a folder overview. Summaries also hydrated full node lists to return counts and five examples.
Cache Atlas geometry and run component packing in a worker with a synchronous fallback. Stream canonical summary rows, count note totals in SQL, avoid weighted-edge aggregation for endpoint discovery, and give Explorer a compact file-pair response. Existing layout, count, folder and freshness rules are preserved. No index or schema migration is needed; Explorer still builds the full cached graph on the server.
Measurements
Same-input local replays against the previous implementation:
All replayed positions, connector paths, summary counts and examples matched. The Explorer projection took 3.2 ms in one warm measurement. These are component measurements, not whole-page latency claims.
Verification
All applicable CI checks passed on final head
b8fbc6a963ce24260a7f59f24fd1c5e19eafa8aa; the reviewed branch is current with main.NODE_OPTIONS=--no-experimental-webstorage mise exec -- make check: passed, including 1,983 web tests.NODE_OPTIONS=--no-experimental-webstorage mise exec -- make build: passed.NODE_OPTIONS=--no-experimental-webstorage mise exec -- make check-full: passed, including race tests, benchmark contracts and integrations, before the UI-only rebase (Go source unchanged).NODE_OPTIONS=--no-experimental-webstorage mise exec -- make web-e2e: all 124 passed../scripts/rzm validateand./scripts/rzm validate frozen-scope-drift: zero findings.Greptile: 5/5, zero comments on final head
b8fbc6a963ce24260a7f59f24fd1c5e19eafa8aa. Its initial readiness finding was withdrawn after checking the unchanged base inventory contract and regression test.Reviewed with sol-loop: 3 rounds with GPT-6.1 Sol on high reasoning effort. Sol verdict: approved. The final pre-merge pass scored 9/10, found no remaining blocker or should-fix, and ran 60 web tests plus focused Go checks. Reviewer usage was not exposed.
Council review
Rounds: 2. Only two providers were available. Round 1 found a worker startup bug and missing fallback; both were fixed and verified before round 2.
Created with GPT-6.1 Sol in the Codex harness through T3 Code.