RE: [PHP] High bandwidth application tips
| From: | Luis Lebron | Date: | Thu, 06 Nov 2003 16:17:36 +0000 |
| Subject: | RE: [PHP] High bandwidth application tips | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-168744@lists.php.net to get a copy of this message | ||
I guess there is a configuration option in my.cnf for logging slow queries?
Luis
-----Original Message-----
From: Chris Shiflett [mailto:shiflett@php.net]
Sent: Thursday, November 06, 2003 9:11 AM
To: Luis Lebron; 'Wouter van Vliet'; 'Jay Blanchard'; 'Marco Tabini';
shiflett@php.net
Cc: 'Php-General (E-mail)'
Subject: RE: [PHP] High bandwidth application tips
--- Luis Lebron <llebron@sigmatech.com> wrote:
> Any good tools for benchmarking sql queries?
This may not directly answer your question, but I find the mytop utility
very helpful for seeing what is happening with a MySQL server. It's
available here:
http://jeremy.zawodny.com/mysql/mytop/
Another thing you can do is configure MySQL to log slow queries, and
configure "slow queries" to be more and more critical, so that you can
focus on the queries that would make the biggest difference. Sorry fi
you're not using MySQL, since I'm assuming you are. :-)
Of course, I still think that avoiding database calls as much as possible
is a good thing.
Hope that helps.
Chris
=====
My Blog
http://shiflett.org/
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp