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

Explain Query button is potentially misleading #518

Closed
tim-ings-vgw opened this issue May 28, 2021 · 3 comments
Closed

Explain Query button is potentially misleading #518

tim-ings-vgw opened this issue May 28, 2021 · 3 comments
Milestone

Comments

@tim-ings-vgw
Copy link

tim-ings-vgw commented May 28, 2021

Hey, just wanted to bring up that the "Explain Query" button is potentially misleading and could cause accidental loss of data as it actually runs EXPLAIN ANALYZE not just EXPLAIN as the button label initially suggests.

Relevant code here:

HandleQuery(fmt.Sprintf("EXPLAIN ANALYZE %s", query), c)

Version v0.11.7

image

@sosedoff
Copy link
Owner

Yeah you're right, though i don't know what the better UX would be for this functionality: i don't really want to have another button to run explain in the UI.

I suppose this could be achieved with a dropdown-style button that includes EXPLAIN / EXPLAIN ANALYZE options. Alternatively, we can check if selected query has any write operations (INSERT/UPDATE/etc) and confirm if user wants to perform the operation.

Thoughts?

@sosedoff sosedoff added this to the 0.12.0 milestone Sep 24, 2021
@tim-ings-vgw
Copy link
Author

Thanks for adding this to your 0.12.0 milestone, your suggestion of a dropdown button seems like a good approach to me.

@sosedoff
Copy link
Owner

sosedoff commented Jan 9, 2022

This one is merger into master already!

@sosedoff sosedoff closed this as completed Jan 9, 2022
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

No branches or pull requests

2 participants