[MDEV-9271] Asynchronous userstat Created: 2015-12-12 Updated: 2017-05-29 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Plugin - userstat |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Alexander Loginov | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | user_statistics, userstat | ||
| Description |
|
Hello. In optimized environments, especially when there are many small queries running consequentially, statistics is really giving a visible slowdown. This is my typical situation (performance schema off; slowlog off; userstat = 1): starting 0.000073 To cut long story short - 58% of time is used for "Statistics" (1.3 milliseconds in this particular query). It's not consistent. Sometimes it's about 30%. But basically varies from 30% to 80%. I understood that it's still fast, but sometimes there are 10,000 queries per page or per second and statistics then can waste 10 seconds per page load (in very bad optimized website, well). I am thinking that user statistics is something that have no need to be done synchronously (blocking returning "DONE" state to client). I mean, that, could be awesome to do such logic: execute query |