Re: many-to-many queryset question

2011-12-06 Thread Felipe Morales
You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to django-users+unsubscribe@** > googlegroups.com . > For m

Re: help optimizing a snippet

2011-12-06 Thread Felipe Morales
lexisnexis.at > > Tel.: 00431 534521573 > > Fax: +43 (1) 534 52 - 146 > > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. >

Re: AW: Performance

2011-12-06 Thread Felipe Morales
Sorry, I was wrong, the sintax is: queryset = Model.objects.filter().select_related('field', 'field2') 2011/12/6 Felipe Morales > No, when you use the select_related method, the query that generated is: > > SELECT * FROM tablename > INNER JOIN tablename2

Re: AW: Performance

2011-12-06 Thread Felipe Morales
rings almost a second J** > ** > > Unfortunately the function seems to effect the results. > > ** ** > > If I run the query with select_related() I get 151 objects. > > Without select_related() I get 199. > > ** ** > > Is there something I can

Re: AW: Performance

2011-12-05 Thread Felipe Morales
users?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegrou