Good use SQL
of explain
is SQL
to adjust and optimize the only way. But the encounter complex SQL
, view explain
the result is a little difficult. For example, this:
Fortunately, many of the client database provides graphical forms, such as PostgreSQL
the pgAdmin4
can see the following effect:
But if there is a tool that can hold live all major relational database, Hi skin more a. The answer is IntelliJ IDEA
. If you have not tried its own Database
function, it is recommended to try now. You should be able to find on the right side of the screen.
Just add the appropriate database connection like the wizard. However, this feature free community version is not.
After creating the database link, through this button to open the SQL Console
window
and then you can write happy inside large column IntelliJ IDEA in SQL ExplainSQL
the.
First to paragraph:
Now we can try to IntelliJ IDEA
perform once explain
a.
- First cursor needs
explain
ofSQL
the - Right exhaled menu, find the implementation of
- We can see the effect
- Click
Show Visualisation
can recall graphical display - If you find this feature useful, you can give it set a shortcut key, as follows
- Exhaled
Find Action...
window (shortcut: ⇧⌘A), inHelp
can be found under the menu - found
explain
- Ankuaichajian ⌥↩︎, or under the windows
alt+回车
- You can set up a keyboard shortcut
- Exhaled