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 query execution plan to sql_detail #452

Merged
merged 4 commits into from
Dec 5, 2020

Conversation

MRoci
Copy link
Contributor

@MRoci MRoci commented Nov 27, 2020

This PR aims to collect query execution plan details with a visualization into the sql detail tab.
Having quick details of the execution plan can be very useful when debugging subtle issues like indexes usage and so on.
Screenshot_2020-11-27 Silky

The explain feature is supported by all builtin databases except for Oracle, so a feature check is performed and if it fails the collection is skipped and the Query Plan section is not rendered.
It also adds a config key called SILKY_ANALYZE_QUERIES which can be set to True in order to enable the ANALYZE flag, which provides more detailed information about the query execution.

That said, thank you for your efforts in this great project!

Copy link
Member

@nasirhjafri nasirhjafri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @MRoci LGTM 👍

@nasirhjafri nasirhjafri merged commit bfa7c5a into jazzband:master Dec 5, 2020
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.

None yet

3 participants