Slow query
A slow query is a statement whose duration is at or above a chosen threshold; in SQLEye the default is 100 ms.
A slow query is a statement whose execution time is at or above a threshold you choose. There is no universal definition; what counts as slow depends on the application. In SQLEye a query is flagged slow when its duration is at least the slow query threshold, which defaults to 100 ms.
You can change the threshold in Settings, from 1 ms up to 600000 ms. Slow queries are highlighted on the Live screen, and a “Slow only” toggle filters the list down to them.
A single slow query often points to a missing index or a heavy join, and EXPLAIN is the usual next step. Many fast queries can also add up, which is the N+1 query pattern. See Settings and Capture.
SQLEye is developed and maintained by CodeROG. This page is also available as Markdown.