Navigating to the SQL Performance package dashboard
Once the SQL statistics job is installed and have collected data, you can navigate to the dashboard.
It is located in the management interface for that database instance. The pictures and descriptions are from MySQL.
There should be a “SQL performance” node in the three structure. Click on it to open the SQL Performance dashboard.
Using the SQL Performance dashboard
The structure of the SQL Performance dashboard is a top graph showing historical data, such as timer wait and lock time.
The blocks graph is used to select the timeframe you want to look at.
You can select predefined time selections, such as Last 8 houres, Last 24 houres, Last 2 days, Last week and all statistics:
You can also use the mouse to select a timeframe from the graph. Click on your start time, hold the mouse button, drag to the desired end time, and release the mouse button.
This will change the selection on the SQL statistics table and the additional information graphs.
The SQL statistics will list SQL statements that has been active in the selected time period.
The number of times this SQL statements has been detected by dbWatch
The schema name executing the SQL or procedure
Is this a SQL or procedure associated with dbWatch
The first time in the selected time frame where this SQL or procedure was executed
The last time in the selected time frame where this SQL or procedure was executed
The number of times in the selected time frame where this SQL or procedure was executed
The total wait time (in milliseconds) in the selected time frame where this SQL or procedure was executed
The total number of rows affected*in the selected time frame* where this SQL or procedure was executed
The number of tmp tables created in the selected time frame where this SQL or procedure was executed
The number of selects in the selected time frame where this SQL or procedure was executed
The number of sorts in the selected time frame where this SQL or procedure was executed
Indicating Not In Use indexes.
Indicating errors with this query.
Navigating SQL statistics
You can investigate the SQL further by right-clicking on one of the lines. Show statistics will open a new dashboard focusing on one SQL statement.
This dashboard will show timer wait and lock time statistics for this statement, and the statistics for the SQL code that has been run.
In addition to the logical/physical reads and writes and the SQL statistics overview, there are additional graphs to visualize other performance statistics from the same selected timeframe.
TMP tables statistics:
InnoDB buffer statistics:
Network usage statistics: