Re: filtering a QuerySet after a slice

2013-09-30 Thread Rimvydas Naktinis
I completely agree with Gary's argumentation here. And I would love to see .limit() introduced (or array slicing adapted). I ran into a situation where I have access into intermediate queryset() construction, where I normally do add .filter() statements, but now I had to limit a number of queri

Re: Could prefetch_related be modified to utilize select_related for ForeignKey relations?

2013-07-02 Thread Rimvydas Naktinis
Yup, qs.prefetch_related('best_pizza__toppings__topping_type', use_select_related=True) looks good enough for many cases. We have a lot of cases in the code where this would save many queries. On Tuesday, November 27, 2012 2:57:16 PM UTC, Anssi Kääriäinen wrote: > > On 26 marras, 21:36, tolomea