----- Original Message -----
> From: "Kevin Falcone" <falc...@bestpractical.com>

> That doesn't looks like a standard RT query, but you haven't provided
> your version. You'll probably want to turn on the StatementLog option
> and figure out where that query is coming from so you can fix the
> source.

Which makes you a good person for me to bounce a SQL idea off of:

For the purpose of tracing queries back into code, how about something like:
"add to the end of each query a clause like AND NOT Todays_Date = '1000-08-22'
(using the appropriate SQL syntax, which I forget)... using the date as an
'address' for the query in the code (program, module, query, or something 
similar."

The entire clause will be statically true, and get optimized off, but will
still show up in the slow-query log, and in mytop/mtop, etc... giving you 
a handle to get back to the code.

Is this possible?  Practical?

Cheers,
-- jr 'Ashworth's Device' a

-- 
Jay R. Ashworth                  Baylink                       j...@baylink.com
Designer                     The Things I Think                       RFC 2100
Ashworth & Associates     http://baylink.pitas.com         2000 Land Rover DII
St Petersburg FL USA      http://photo.imageinc.us             +1 727 647 1274
--------
RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26 & 27, 2011
*  San Francisco, CA, USA  October 18 & 19, 2011
*  Washington DC, USA  October 31 & November 1, 2011
*  Melbourne VIC, Australia  November 28 & 29, 2011
*  Barcelona, Spain  November 28 & 29, 2011

Reply via email to