| General query log performance [message #67] |
Wed, 16 August 2006 09:46  |
radek Messages: 7 Registered: August 2006 Location: London |
Junior Member |
|
|
Hi
I'm wondering how big impact on performance would have turning on the general query log. I read in manual it should be turned off in production environment to increase the performance but I didn't find any information about performance gain (how much cpu/disk usage it would take). Is it like 1% performance lost or could it be bigger? Basically I just want to turn it on for a week to analyze later that query log.
Thanks in advance
Radek
[Updated on: Wed, 16 August 2006 09:50]
|
|
|
|
|
|
|
| Re: General query log performance [message #126 is a reply to message #125 ] |
Thu, 31 August 2006 06:15   |
Peter Messages: 405 Registered: August 2006 |
Senior Member Super Guru |
|
|
Right,
General query log does not include query times. Furthermore queries with syntax and other errors will be logged.
General query log can't include query times because queries are logged before they are executed - so if some query crashes MySQL during execution it can be found in general query log.
It should not be hard to patch MySQL to log all queries to slow query log if slow_query_time is set to 0.
Peter Zaitsev, MySQL Performance Expert
MySQL Performance Blog - http://www.mysqlperformanceblog.com
MySQL Consulting http://www.mysqlperformanceblog.com/mysql-consulting/
|
|
|
|
|
|
|
|