Performance analysis

Updated at:

This topic describes how to use the performance analysis feature of a Database Auditing D100 instance to query Top SQL statements and view statement peaks.

Top SQL statements

The Top SQL statements feature queries and ranks SQL statements by criteria such as average response time, total response time, and number of executions. The results are sorted in descending order.

  1. Log on to the Database Audit system. For more information, see Log in to Database Audit Service.

  2. In the left-side navigation pane, choose Query and Analysis > Performance Analysis.

  3. Set filters such as Asset name and Time range, and then click Query.

    The query returns a table with columns such as SQL template, Last execution time, Execution count, Average response time, Total response time, and Total affected rows. You can use the Sort by option to sort the results by a specific metric, such as execution count.

  4. Click an entry in the SQL template column to view its details.

Statement peak

The statement peak feature shows the peak number of SQL statements executed on a database within a selected time range.

  1. Log on to the Database Audit system. For more information, see Log in to Database Audit Service.

  2. In the left-side navigation pane, choose Query and Analysis > Performance Analysis.

  3. Click the Statement peak tab.

  4. Set filters such as Database name and Time range, and then click Query.

    The query returns a line chart named Statement peak statistics/min. This chart helps you identify when statement execution surged and find the corresponding client IP addresses and database users.