Administration DBA
Top SQL
Top SQL view
The Top SQL view lists the 20 slowest database queries. This view requires a system data source and shows all statements in the database cache.
This option is not available if your N4 TOS is hosted by Kaleris. Double-click on a query to view extra detail in the SQL Text form.
The Database Performance Management privilege (on page 1) controls access to this view.
You can use the Actions menu to do the following:
Select Time Boundaries: (on page 1) FiIter the queries by time range. For example, you can view the slowest database queries for only the last hour. Enter the date as YYYY-MM-DD and the time as HH:MM.
Enable SQL Comments: (on page 1) Select this option to turn on SQL comments for the local node or for all nodes. This is applied at the global scope.
Disable SQL Comments: (on page 1) Select this option to turn off viewing SQL comments for the local node or for all nodes. This is applied at the global scope.
Short Name |
Long Name |
Description |
---|---|---|
Comment |
Comment |
The comments related to the SQL statement:
|
Username |
Database connection username |
The user associated with executing the SQL statement. |
Database Name |
Database Name |
The name of the database. |
First characters |
First characters |
The first 30 characters of the SQL statement. |
Full query |
Full query text |
The full text of the SQL statement. |
Executions |
Number of Executions |
The number of times that the SQL statement has been executed. |
Elapsed |
Elapsed time(s) |
The total time in seconds of all the executions of the SQL statement. |
Elapsed per Exec |
Elapsed time per exec(s) |
The average execution time in seconds for this SQL statement. This is the (Elapsed) / (Number of Executions). |
Rows Result |
Rows Retrieved or Affected |
The number of rows returned from the last execution of the SQL statement. |
Cache Hit % |
Buffer Cache Hit Percent |
The percentage of reads from the database buffer cache to execute this SQL statement. |