Re: Getting MySQL Query Times.
| From: | David Robley | Date: | Fri, 24 Aug 2001 01:22:25 +0000 |
| Subject: | Re: Getting MySQL Query Times. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64200@lists.php.net to get a copy of this message | ||
On Fri, 24 Aug 2001 01:52, Gabe da Silveira wrote:
> I was looking thru the mysql functions, and there doesn't seem to be
> one that gives you the amount of time a query takes. Is there anyway
> to get this information (since it gives it to you when you type queries
> directly into the mysql shell client)? A script of mine is starting to
> get fairly slow (2-3 seconds for page to process) and I want to be able
> to log the query speeds so I can see if there's a database bottleneck
> or if my code is just kludgy.
It might be worth running a mysql EXPLAIN on your query, if it is a
complex one.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Reality is an obstacle to hallucination.