Re: Finding those slow queries
2009-07-21 07:29:23 GMT
Hi Did You try mysql option log_slow_queries ? In original MySQL version You cen define that You want to log queries that takes longer then one second for example. That could be the way for You to find queries that needs Your attention. -- Best regards Łukasz Wojciechowski New Generation Software +48 602 214 629 http://www.ngsoft.pl 2009/7/21 Murray Collingwood <murray <at> focus-computing.com.au>: > Hi Propellers (is that what we are calling ourselves now?) > > I am starting to get a number of databases running on my web server and the > traffic is starting to increase to the point where I am forced to begin > optimising stuff (rather than just throwing more hardware at the server). > > So, I know I have some poor performance when I read this stat from my MySQL > server: > Handler_read_rnd_next 106 G The number of requests to read the next row in > the data file. This is high if you are doing a lot of table scans. Generally > this suggests that your tables are not properly indexed or that your queries > are not written to take advantage of the indexes you have.(Continue reading)
RSS Feed