Repository navigation
perf(explain): parse the plan once, and offer Cancel from the panel - #514
Merged
Merged
Conversation
EVWorth
force-pushed
the
fix/explain-plan-rendering
branch
from
August 28, 2026 23:18
a27c42f to
320359f
Compare
EVWorth
force-pushed
the
fix/explain-panel-polish
branch
from
August 28, 2026 23:19
0cc288c to
a61948f
Compare
EVWorth
force-pushed
the
fix/explain-plan-rendering
branch
from
August 28, 2026 23:22
320359f to
afa9f42
Compare
ExplainTable, ExplainTreeView and the maxRows calculation each called parseExplainRows on the same result, so one render walked every row three times and did three times the column lookups. Parse once in ExplainPanel and pass the rows and their maximum down; the views now take data rather than re-deriving it. (#425) EXPLAIN ANALYZE runs the statement, so a slow one left the user watching a spinner with the only Cancel button on the editor toolbar, out of view. Surface it in the panel header — on the plan view too, since a plan can be slow to come back on a busy server. It is a real cancel now that the executor issues KILL QUERY. (#427) Refs #425, #427 Co-Authored-By: Claude Opus 5 <[email protected]>
EVWorth
force-pushed
the
fix/explain-panel-polish
branch
from
August 28, 2026 23:34
a61948f to
bf64703
Compare
9 of 16 tasks
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.
Closes #425, closes #427.
Last of three PRs for
area/explain. Stacked on #513, which is stacked on #512 — review those first; this retargets tomainonce they land.#425 —
ExplainTable,ExplainTreeViewand themaxRowscalculation each calledparseExplainRowson the same result, so one render walked every row three times and did three times thecolNames.indexOflookups. Parsed once inExplainPaneland passed down; the views now take data rather than re-deriving it.#427 — EXPLAIN ANALYZE runs the statement, so a slow one left the user watching a spinner with the only Cancel button on the editor toolbar, out of view. Surfaced in the panel header — on the plan view too, since a plan can be slow to come back on a busy server.
Worth noting the issue hedged that "cancel doesn't actually work per editor F1". It does now: #512 made the executor issue
KILL QUERYserver-side, so this button really stops the query rather than just hiding it.1626 frontend tests pass; clippy/tsc/dprint clean.
After this lands
area/explainis closed out except #424 (EXPLAIN FORMAT=JSON / FORMAT=TREE), left open by design — it's a feature rather than a fix, and it's the piece that would deliver the FR-2.2.5 cost annotations currently logged as doc-drift in #459. The P2/P3 backlog items listed in #411 (F10–F16) are also still open, though F15 (the unusedNULLrank) went away as a side effect of the #426 cleanup.🤖 Generated with Claude Code