On Fri, 2007-07-13 at 09:57 +0000, jj wrote:
> I posted earlier about performance issues trying to display many books
> in one single page. I've since fixed the problems by reducing the
> number of SQL queries from 12 per book, to just 11 overall. I also
> perform filtering based on user's permissions up-front. Big
> performance boost.
> 
> I ended writing several managers. Typing almost the same code in each
> manager. Encapsulating it all in a hand-crafted select_related_ex()
> that also fetches ManyToManyField's and ForeignKey's where
> "null=True".
> 
> It occurred to me that such code could/should probably be made generic
> and part of the standard Django distribution.

You haven't included an example of what you're talking about, so it's
difficult to comment on the specifics.

Malcolm

-- 
Telepath required. You know where to apply... 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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