ManyToMany performance

2008-10-01 Thread Dan W.
This is my first time building an app with django and so far I've been more than happy with it. However, I can't seem to figure out how to sufficiently optimize queries for ManyToMany relationships. Here is a model to illustrate my problem: class Book(models.Model): name = models.CharField(m

Re: ORM question

2008-06-06 Thread Dan W.
Thanks, guys. Those are just the pointers I needed. Dan On Fri, Jun 6, 2008 at 5:02 PM, James Bennett <[EMAIL PROTECTED]> wrote: > > On Fri, Jun 6, 2008 at 6:57 PM, Dan W. <[EMAIL PROTECTED]> wrote: > > I'm pretty new to django and so far so good except for one

ORM question

2008-06-06 Thread Dan W.
I'm pretty new to django and so far so good except for one thing. When I fetch model objects, their related objects are showing up as RelatedManager and ManyRelatedManager objects intead of the types I created and modified in my model. Consequently if I try to iterate over them or access their data