On Feb 2, 2006, at 2:53 PM, Wojtek/brandlay.com wrote:
any idea how to speed Django up? my servers have load 140 now even
though I'm caching templates. any sites/hints on speading the whole
machinery up?
Yikes!
Most of what I know is summed up here: http://www.jacobian.org/2005/
dec/12/django-performance-tips/
A lot of that is system-level stuff, though, and may or may not be
helpful...
the thing that generates the most load are the templates it seems. a
profile session result is below, all hints are welcome :)
I'd suggest caching the entire rendered template if you can, or at
the very least a rendered portion of it. Chances are that Adrian's
right and hitting the filesystem is the bottleneck; if that's the
case, you should see some speed improvements by caching the
unrendered templates instead.
Jacob