Skip to content

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.

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.

  1. Open Settings with ⌘, or Ctrl+,.
  2. Set Slow query threshold. Allowed values are 1 to 600000 ms; the default is 100.

See the settings reference.

  1. Turn on capture and run your workload.
  2. In the Live tab, turn on Slow only.
  3. Select a row and use Explain to see the plan, or Filter to this shape to see every run of that statement.
  4. To find the worst offenders over time, open the Shapes tab and sort by Total or Max. See query shapes.

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.