On 2/8/07, Derek Lee-Wo <[EMAIL PROTECTED]> wrote:
> I wasn't aware of that, but in my case, I am processing the data
> before I render the template.  I actually loop though all the records
> and do some processing so I know the SQL queries are occurring within
> the 0.5 seconds I mentioned above.

I don't see anything unreasonable in the template.  render_to_response
is a convenience method, and I think you'll need to determine which
part of it's steps are taking the time.

You'll want to do something like this, timing each line:

from django.template import loader

source, origin = find_template_source('your_template_name')
template = get_template_from_string(source, origin, 'your_template_name')
template.render(your_context)

--------------

It may be that template.render is the slow line-- If that's the case,
I'd start whacking timing info into django.template.NodeList.render
(specifically the lines inside "for node in self").

Cheers,
  Jeremy

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to