[MDEV-250] SLOW QUERY LOG - Group queries and check total slow query Created: 2012-05-04 Updated: 2015-01-23 Resolved: 2015-01-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Fix Version/s: | 10.1.2 |
| Type: | Task | Priority: | Trivial |
| Reporter: | roberto spadim | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Description |
|
Hi again guys first... a per query estimate time tweak like: second... a per group of queries time tweak like: if 2+3+4+5+6 total time is bigger than group query time, this should be logged that´s very nice and very useful since a group of queries = a php or another web application page information/action and... with this two types of query could allow a very very powerfull tool to undestand where my database is slowing down, it´s on only one query? or a group of queries that didn´t done the task in a good time? check that doesnt matter about cliente time to retrieve query results, just server query process time... |
| Comments |
| Comment by Sergei Golubchik [ 2012-05-16 ] | |||||||
|
Thank you for a feature suggestion. Syntax-wise, I think it'd better to avoid magic comments, and use a new session variable, like set session group_query_time=5; – timeout in seconds | |||||||
| Comment by roberto spadim [ 2012-05-16 ] | |||||||
|
well it's really better thanks sergei! | |||||||
| Comment by roberto spadim [ 2012-06-28 ] | |||||||
|
hi =) any news? | |||||||
| Comment by Sergei Golubchik [ 2015-01-23 ] | |||||||
|
This is pretty much done in 10.1. I believe you can do it like this:
|