Re: Help interpreting profiler results (or: why is my app so slow?)

2013-04-18 Thread Matt Andrews
I wouldn't say huge (see the page/view in question at http://www.scenepointblank.com) -- I grab a bunch of things and then display them, mostly truncated (with HTML stripped out, usually for the homepage). The custom template tags take a bunch of arguments (say for a news post, it takes

Re: Help interpreting profiler results (or: why is my app so slow?)

2013-04-18 Thread Shawn Milochik
Hit send too soon: https://docs.djangoproject.com/en/dev/topics/cache/#template-fragment-caching On Thu, Apr 18, 2013 at 8:39 AM, Shawn Milochik wrote: > Yes, it does look like template tags are taking some time. Is the page > huge? Are you doing a ton of formatting? Is

Re: Help interpreting profiler results (or: why is my app so slow?)

2013-04-18 Thread Shawn Milochik
Yes, it does look like template tags are taking some time. Is the page huge? Are you doing a ton of formatting? Is there something you could maybe move to server-side? Also, this might help with caching bits of your output: On Thu, Apr 18, 2013 at 6:17 AM, Matt Andrews

Re: Help interpreting profiler results (or: why is my app so slow?)

2013-04-18 Thread Matt Andrews
On Thursday, 18 April 2013 10:45:40 UTC+1, Tom Evans wrote: > On Wed, Apr 17, 2013 at 11:18 PM, Matt Andrews > > wrote: > > Hi all. > > > > Having performance problems with my Django app. I've posted here before > > talking about this: one theory for my slowness

Re: Help interpreting profiler results (or: why is my app so slow?)

2013-04-18 Thread Tom Evans
On Wed, Apr 17, 2013 at 11:18 PM, Matt Andrews wrote: > Hi all. > > Having performance problems with my Django app. I've posted here before > talking about this: one theory for my slowness woes was that I'm using raw > SQL for everything after getting sick of Django doing

Re: Help interpreting profiler results (or: why is my app so slow?)

2013-04-17 Thread Shawn Milochik
When you print those out with pstats, sort by cumtime. cumtime = cumulative time That will tell you almost exactly (and maybe really exactly) which code is slow. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Help interpreting profiler results (or: why is my app so slow?)

2013-04-17 Thread Matt Andrews
Hi all. Having performance problems with my Django app. I've posted here before talking about this: one theory for my slowness woes was that I'm using raw SQL for everything after getting sick of Django doing things weirdly (duplicating queries, adding bizarre things like "LIMIT 3453453" to