felixge / felixge/flame-explain
Collapse rows with low total time % in tree table by default
- 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:

After:

# Proposal
Create a PR that automatically collapses these kind of rows.
Contributor guide
Assessment
This issue has not been assessed yet.