If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Slow query logging performance impact.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-05-09, 11:27
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,732
Slow query logging performance impact.

MySQL 5.x

Currently running slow query logging to catch anything taking longer than 10 seconds. Not much is showing up, but we are still seeing performance issues and are concerned that our problems may be caused by a flood of relatively fast queries.
If we drop this threshold down from 10 seconds to 5, could this itself impact performance? What if we dropped it down to 1, or zero?
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #2 (permalink)  
Old 02-06-09, 08:28
sassermann sassermann is offline
Registered User
 
Join Date: Aug 2002
Location: Germany
Posts: 17
Logging will definitly come at some cost.

But if you are not shure about the number of querys, you could first check the status information where every query is counted.

You can use "MySql Administrater" which gives you the details in graphs which allow to easily observe usage peaks.


Andreas
Reply With Quote
  #3 (permalink)  
Old 02-06-09, 09:07
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
I'm sure you've covered these things but are you sure it's not a locking issue? Has anything changed recently? Would it be worth mentioning what storage engine you use and whether you use replication.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On