Find slow queries
SQLEye flags a statement as slow when its duration is at or above the slow query threshold, which defaults to 100 ms. Switch on Slow only in the Live tab to list just those statements.
How is a query flagged?
Section titled “How is a query flagged?”Duration is greater than or equal to the threshold. The flag is stored on the event, and the detail panel marks the duration as slow.
How do I change the threshold?
Section titled “How do I change the threshold?”- Open Settings with
⌘,orCtrl+,. - Set Slow query threshold. Allowed values are 1 to 600000 ms; the default is 100.
See the settings reference.
How do I find them?
Section titled “How do I find them?”- Turn on capture and run your workload.
- In the Live tab, turn on Slow only.
- Select a row and use Explain to see the plan, or Filter to this shape to see every run of that statement.
- To find the worst offenders over time, open the Shapes tab and sort by Total or Max. See query shapes.
Does a high threshold hide queries?
Section titled “Does a high threshold hide queries?”No. It changes only which events are flagged. Every statement is still captured and shown.
SQLEye is developed and maintained by CodeROG. This page is also available as Markdown.