Skip to content

Show EXPLAIN QUERY PLAN details as an indented tree - #4237

Open
deepsidhu1313 wants to merge 1 commit into
sqlitebrowser:masterfrom
deepsidhu1313:feature/explain-tree
Open

deepsidhu1313 wants to merge 1 commit into
sqlitebrowser:masterfrom
deepsidhu1313:feature/explain-tree

Conversation

@deepsidhu1313

Copy link
Copy Markdown
Contributor

The result of EXPLAIN QUERY PLAN is a flat grid of (id, parent, notused, detail) rows, which makes the nesting of the plan hard to see. Add an ExplainTree helper that derives the nesting depth of each plan step from the id/parent columns (robust against out-of-order rows, unknown parents and parent loops) and an item delegate which shows the detail column indented by that depth. The Execute SQL tab installs the delegate only when the executed statement is EXPLAIN QUERY PLAN; the model data, copy and export are unchanged and other results are not affected.

Includes the test-explain-tree unit test.

The result of EXPLAIN QUERY PLAN is a flat grid of (id, parent, notused,
detail) rows, which makes the nesting of the plan hard to see. Add an
ExplainTree helper that derives the nesting depth of each plan step from
the id/parent columns (robust against out-of-order rows, unknown parents
and parent loops) and an item delegate which shows the detail column
indented by that depth. The Execute SQL tab installs the delegate only
when the executed statement is EXPLAIN QUERY PLAN; the model data, copy
and export are unchanged and other results are not affected.

Includes the test-explain-tree unit test.

This branch has not been deployed

No deployments
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.

2 participants