Skip to content
The latest version of DbVisualizer was released 2025-04-11DOWNLOAD HERE ->

Analyzing (explain) Query Performance

Only in DbVisualizer Pro

This feature is only available in the DbVisualizer Pro edition.

You can analyze how a query is executed by the database, e.g. whether indexes are used or if the database has to do an expensive full scan. To analyze a query:

  1. Enter the query in the SQL Commander editor,
  2. Click Execute Explain Plan button in the toolbar,
  3. Look at the result in the results area.

Explain Plan is supported for Azure SQL Database, Db2 LUW, Exasol, Greenplum, H2, JavaDB/Derby, MariaDB, Microsoft Access, Mimer SQL, MySQL, Netezza, NuoDB, Oracle, PostgreSQL, Presto, Amazon Redshift, SQLite, Microsoft SQL Server, SingleStore, Trino, Vertica, and Yellowbrick.

The available presentations options vary per database as shown in this table.

DatabaseGraph FormatTree FormatText FormatGrid FormatNode Cost Coloring (Graph and Tree only)
Azure SQL DatabaseCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a feature
ClickHouseCheckmark sign indicating availability of a feature
Db2 LUWCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a feature
ExasolCheckmark sign indicating availability of a feature
GreenplumCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a feature
H2Checkmark sign indicating availability of a feature
JavaDB/DerbyCheckmark sign indicating availability of a feature
Microsoft AccessCheckmark sign indicating availability of a feature
Mimer SQLCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a feature
MariaDBCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a feature
MySQLCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a feature
NetezzaCheckmark sign indicating availability of a feature
NuoDBCheckmark sign indicating availability of a feature
OracleCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a feature
PostgreSQLCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a feature
PrestoCheckmark sign indicating availability of a feature
RedshiftCheckmark sign indicating availability of a feature
SingleStoreCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a feature
SQLiteCheckmark sign indicating availability of a feature
Microsoft SQL ServerCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a feature
TrinoCheckmark sign indicating availability of a feature
VerticaCheckmark sign indicating availability of a feature
YellowbrickCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a featureCheckmark sign indicating availability of a feature

Explain Plan executes your query and records the plan that the database devises to execute it. By examining this plan, you can find out if the database is picking the right indexes and joining your tables in the most efficient manner. The explain plan feature works much the same as executing SQLs to present result sets; you may highlight statements, run a script or load from file. The explain plan results can easily be compared by pinning the tabs for different runs.

DbVisualizer presents the plan either in a tree style format or in a graph, or in a simple text format. The information depends on the database you use. In the tree view, put the mouse pointer on the column header for a tooltip description what that column represents.

The following screenshot shows the SQL in the editor at top and the resulting explain plan as a tree view. The relative cost is indicated using colored adornments on each node and you can select a node to see the details (if Show Details is checked).

Screen capture of the SQL editor and the resulting explain plan in a tree view

The Graph View shows the plan as a graph. You can zoom in or out, choose detail levels, export it to an image file or print it using the toolbar buttons. The relative cost is indicated by node color and you can select a node to see the details (if Show Details is checked).

Screen capture of explain plan shown as a graph

The databases use different techniques to manage their explain plan support. You can make database-specific configurations in the Properties tab for a connection, in the Explain Plan category.