microslow logs slow queries even if not executed
Bug #297060 reported by
Arjen Lentz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OurDelta |
Confirmed
|
Medium
|
Arjen Lentz |
Bug Description
When long_query_time is really small, the slow log will also see queries that are not actually executed, for instance because of a syntax error. Naturally this is not desirable behaviour.
The probable cause is actually likely to be with the original slow query log code and not with the microslow patch as such; with second-granularity, no syntax error query would ever take longer than a second to get through the parsing stage....
Changed in ourdelta: | |
assignee: | nobody → arjen-lentz |
importance: | Undecided → Medium |
status: | New → Confirmed |
To post a comment you must log in.
On Tue, Nov 11, 2008 at 10:26 PM, Arjen Lentz <email address hidden> wrote: /bugs.launchpad .net/bugs/ 297060
> Public bug reported:
>
> When long_query_time is really small, the slow log will also see queries
> that are not actually executed, for instance because of a syntax error.
> Naturally this is not desirable behaviour.
>
> The probable cause is actually likely to be with the original slow query
> log code and not with the microslow patch as such; with second-
> granularity, no syntax error query would ever take longer than a second
> to get through the parsing stage....
>
> ** Affects: ourdelta
> Importance: Undecided
> Status: New
>
> --
> microslow logs slow queries even if not executed
> https:/
> You received this bug notification because you are a member of OurDelta-
> developers, which is the registrant for OurDelta.
>
> Status in OurDelta - Builds for MySQL: New
>
> Bug description:
> When long_query_time is really small, the slow log will also see queries that are not actually executed, for instance because of a syntax error. Naturally this is not desirable behaviour.
>
> The probable cause is actually likely to be with the original slow query log code and not with the microslow patch as such; with second-granularity, no syntax error query would ever take longer than a second to get through the parsing stage....
>
I think this is not a bug. If a DBA decides that any query over that
takes over some period of time should be logged, and a query (with a
syntax error, or not) takes longer than that period it __should__ be
logged.
As long as the behavior is documented I do not see it as problematic.
--
Rob Wultsch