Re: Eager Fetching

2009-02-26 Thread Malcolm Tredinnick
the value of node.comment_set.count, and it looks like > that isn't being evaluated until the template is rendered. > > What it looks like I need is to get my code to do more eager fetching, > but I'm not sure exactly how to go about doing that. Does anyone have > any t

Eager Fetching

2009-02-25 Thread saxon75
e queryset in the view, and that does help some. But things are still quite slow, taking 4 to 6 seconds to render the template. The culprits seem to be the for loop in the template that iterates over node.article.tags and also the two calls to node.comment_count. As you can see from the model, node.