Repository navigation
Draw the plan as a tree with estimated vs actual row bars - #9
Merged
Merged
Conversation
The page runs the first preset on load, so clicking Run again redrew the same rows and a near-identical plan, and looked like a dead button. Each run now shows a Running state (after yielding a frame, since Python blocks the main thread), numbers itself in the status line, and briefly highlights the plan and result panels.
Each operator gets a pair of bars, estimated rows over actual rows, on a log scale shared by the whole plan, so a gap of the same size means the same factor anywhere in the tree. Nodes off by the profiler's MISESTIMATE_FACTOR or more are flagged with an icon and label. demo.run() now returns that factor, so the page and the text output flag the same nodes. Hovering or focusing a row shows the exact counts and both timings. The text rendering stays one click away. Below 640px each operator stacks above full-width bars rather than hiding them behind a sideways scroll. The plan now spans the full width under the query and result.
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.
Step 3 of the visual demo. This PR also carries the Run-button feedback commit, which was pushed to #8 after #8 had already merged.
MISESTIMATE_FACTOR(10x) or more get a ⚠ icon and a text label. The label carries the meaning, so the flag doesn't depend on colour alone.demo.run()now returns the factor, so the page flags exactly the nodes the text output flags.Checked in the browser at 1280px and 375px, in light and dark mode. The console shows no errors.