Skip to content

Instantly share code, notes, and snippets.

@asigatchov
Created November 4, 2016 20:24
Show Gist options
  • Save asigatchov/12a48a10a9e28c5296d9df71ec695cec to your computer and use it in GitHub Desktop.
Save asigatchov/12a48a10a9e28c5296d9df71ec695cec to your computer and use it in GitHub Desktop.
Поиск медленных ip клиетнов
SELECT
floor(avg(resp_time), 2) AS avg_time,
ip
FROM access_log
WHERE event_date = '2016-11-01'
GROUP BY ip
ORDER BY avg_time DESC
LIMIT 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment