The total elapsed time for all sorts that have been executed. This value is reported in milliseconds.
Snapshot Level | Logical Data Grouping | Monitor Switch |
---|---|---|
Database | dbase | Sort |
Application | appl | Sort |
Application | stmt | Sort |
Dynamic SQL | dynsql | Sort |
Event Type | Logical Data Grouping | Monitor Switch |
---|---|---|
Database | event_db | - |
Connection | event_conn | - |
Statements | event_stmt | - |
Activities | event_activity | Statement, Sort |
At a database or application level, use this element with total_sorts to calculate the average sort time, which can indicate whether or not sorting is an issue as far as performance is concerned.
At a statement level, use this element to identify statements that spend a lot of time sorting. These statements may benefit from additional tuning to reduce the sort time.
This count also includes sort time of temporary tables created during related operations. It provides information for one statement, one application, or all applications accessing one database.
total_sort_time / total_sorts
provides information about the average elapsed time for each sort.