Starting a Monitor

Image: starting a monitor
Here you see your choices about starting a monitor for your database’s operations.

When a monitor is running, the plugin intercepts WordPress’s queries to your database, including queries from plugins like WooCommerce, BuddyPress, and others. It measures how long each query takes, and then looks up what indexes, if any, the query used. It accumlates the queries into a saved monitor that you can view later.

You can give each monitor its own name, and you can capture only one monitor at a time.

When you know certain operations on your site are too slow, start a monitor and then perform those operations while the monitor is running. For example, it make take too long to search for a product in a WooCommerce site. To isolate the slow database query or queries causing the slowdown, start the monitor and then search for that product.

You can also start a monitor during a busy time of day on your site, and let it monitor your users’ operations for a few minutes. When you view the monitor you will see the slowest queries.

Choosing operations to monitor

Imaging: choosing what to monitor
You can choose to monitor operations from your dashboard (the part of the site seen by your administrators), the site itself (the part of the site seen by your site visitors) or both. Make your choice based on what operations are slow. If you’re in doubt, choose to monitor both the dashboard and the site.
Image: choosing random-sampling frequency
You can monitor all pageviews, or you can monitor a random sampling. If your site is very busy and you’re monitoring your visitors’ activity on the site, you may want to choose a sample: monitoring adds some overhead to each pageview it monitors.

Each pageview generates many queries to your database. Once a pageview is chosen, randomly, to be part of the sample, the plugin monitors all queries for that pageview.

Image: Stored Monitors
Here you see your saved monitors. The plugin displays their names, the times they were active, and the total number of queries they capture. You can click the red X to delete a saved monitor when you no longer need it.

You should delete a monitor before starting a new one with the same name. If you don’t the plugin will resume capturing into the existing monitor.