Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'compare performance' view #3843

Open
wants to merge 37 commits into
base: main
Choose a base branch
from

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Nov 27, 2024

Adds the 'Compare Performance' UI from the hackathon.

Activate via right-clicking on a query history item

Screenshot 2024-11-27 at 14 37 31

Shows overview of predicate evaluation costs

Screenshot 2024-11-27 at 14 38 56

Click a predicate to show its pipeline(s) and tuple counts per step

Screenshot 2024-11-27 at 14 37 11

Changes since the hackathon:

  • The integration with DCA has been left out for now. I'm hoping @esbena will follow up on this.
  • Added support for predicate-renaming, which was WIP and not demoable in time for the Hackathon demo.
  • Some UI performance improvements: using useMemo and moved some state into subcomponents where a state change cause as much re-rendering.
  • Some clean up of the commit history; mainly squashing simple bugfixes into an earlier commit.

Despite my attempts at cleaning the commit history, it might actually be easiest to review as one giant diff.

asgerf and others added 30 commits November 27, 2024 13:47
Adds a dropdown with (at present) two options: sorting by delta and
sorting by absolute delta.
This ensures we can use hooks after the check in the main component
A very hacky implementation that simply instantiates an empty
`PerformanceOverviewScanner` as the "from" column (i.e. with all values
empty). To see it in action, select a single query run in the query
history and pick "Compare Performance" from the context menu. Then
select the "Single run" option when prompted.
Only contains formatting changes
Predicate names can't be empty, but it can happen with the renaming feature added in the next commit.
@asgerf asgerf force-pushed the asgerf/compare-perf-view branch 2 times, most recently from 13e78a6 to ec223fa Compare November 27, 2024 13:00
@asgerf asgerf marked this pull request as ready for review November 27, 2024 13:41
@asgerf asgerf requested a review from a team as a code owner November 27, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants