felixge / felixge/flame-explain

Collapse rows with low total time % in tree table by default

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
55
Forks
5
PR merge metrics
No merged PRs in 30d

Description

# Problem

For complex queries, the tree table may show many rows (e.g. 20+), however some of them are very unimportant compared to others. E.g. rows that take up less than 5% of the total time of the query would rarely be considered interesting.

So one way to declutter the UI, would be to collapse any row that takes less than 5% of the total time, so the children don't take up any space. Here is how this could look for the CTESleepUnion example:

Before:

![image](https://user-images.githubusercontent.com/15000/90111466-fe307e80-dd4e-11ea-8c48-b4b572ed2d01.png)

After:

![image](https://user-images.githubusercontent.com/15000/90111852-8151d480-dd4f-11ea-8236-54eba70aa659.png)

# Proposal

Create a PR that automatically collapses these kind of rows.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.