Select the Trace 'shutdown' saved queries
checkbox to obtain a summary of the queries performed during the transaction.
The output is produced in two trace records.
- The WPDB global object – providing all the details.
- Summarised using [bw_sql] shortcodes.
Example
and
Notes
- In my experience the elapsed time of the SQL queries hardly ever reveals a performance problem with data access.
- When this option is selected the Daily Trace Summary report will show the Query time.
- See bw_trace_saved_queries().