Re: pre-fetch one-to-many and many-to-many relationships

2009-07-21 Thread Miriam
Hi Russ -- Awesome. I will organize my ideas and start a thread over on django- developers. > I've heard people claim that > this is possible in Rails (also in SQLAlchemy), but I've never had > enough of an itch to go looking and see if this is true, and if so, > how they implement it. This is

Re: pre-fetch one-to-many and many-to-many relationships

2009-07-20 Thread Jason Beaudoin
Miriam, If you do take this to django-developers, please post a link here, at least.. this would be greatly appreciated. Thanks :) ~Jason On Mon, Jul 20, 2009 at 7:39 PM, Russell Keith-Magee wrote: > > On Mon, Jul 20, 2009 at 11:21 PM, Miriam wrote: > > > > Hi Russ -- > > > > Thanks for your r

Re: pre-fetch one-to-many and many-to-many relationships

2009-07-20 Thread Russell Keith-Magee
On Mon, Jul 20, 2009 at 11:21 PM, Miriam wrote: > > Hi Russ -- > > Thanks for your response. I figured there must have been discussion on > this at some point, given that this is a pretty common use case, and > one that other ORMs already tackle with varying degrees of success. Is > there a ticket

Re: pre-fetch one-to-many and many-to-many relationships

2009-07-20 Thread Miriam
Hi Russ -- Thanks for your response. I figured there must have been discussion on this at some point, given that this is a pretty common use case, and one that other ORMs already tackle with varying degrees of success. Is there a ticket on the subject? If so, I'd love to shift the conversation ov

Re: pre-fetch one-to-many and many-to-many relationships

2009-07-18 Thread Matthias Kestenholz
Hey, On Fri, Jul 17, 2009 at 5:06 PM, Miriam wrote: > > There currently is no way in Django to pre-fetch one-to-many and/or > many-to-many relationships, right? > > There's select_related, which will pre-fetch FK or one-to-one, which > is great, but not sufficient. > > Suppose I am fetching a lis

Re: pre-fetch one-to-many and many-to-many relationships

2009-07-17 Thread Russell Keith-Magee
On Fri, Jul 17, 2009 at 11:06 PM, Miriam wrote: > > There currently is no way in Django to pre-fetch one-to-many and/or > many-to-many relationships, right? Correct. > There's select_related, which will pre-fetch FK or one-to-one, which > is great, but not sufficient. > > Suppose I am fetching a