Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-24 Thread Alex Grigorievskiy
Hi, Cal and everybody, I'd like to see the webcast too, thanks very much for that :) On Jun 23, 2:50 am, "Cal Leeming [Simplicity Media Ltd]" wrote: > Nice! > > On Wed, Jun 22, 2011 at 11:39 PM, Thomas Weholt > wrote: > > > > > > >

Re: manytomany query problem

2011-06-24 Thread Alex Grigorievskiy
Hi, Tony, I would do something like this: # b2 makes a connection b_qs = b.objects.filter(b_rel=b2) # - all friends of b2 iter = ( a_inst.b_set & b_qs for a_inst in a.objects.all() ) # here we make an iterator which give you a queryset of the intersection of a.b_set and friends of b2. On Jun 24,