On Fri, 2006-08-11 at 13:59 +0000, DavidA wrote:
> 
> Hancock, David (DHANCOCK) wrote:
> > So, I¹d appreciate any pointers to documentation, code, etc. to let me log
> > queries to a file.
> 
> David,
> 
> While not exactly what you want, I wrote a simple middleware class to
> track page-generation stats when calling a view. In it, I count the
> number of queries and total time spent in them. You could take my class
> and simply change the part where I'm computing the time to print out
> each SQL call.

For those who didn't completely accidentally stumble over this (as I
managed to), could I just mention that it's really handy at times for
getting a broad overview. I am using David's tag more or less as is when
I'm developing crazy stuff just to check if anything completely stupid
is going on and catch it early.

I'd meant to bring it up before, but that tag is nice work, David. :-)

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to