On Wed, Jul 31, 2013 at 7:39 PM, Loic Bistuer <loic.bist...@sixmedia.com> wrote: > In your example "print qs[0]" evaluates a *clone* of "qs", not "qs" itself. > > Therefore "qs[0]; qs[-1]; qs[0]" triggers 3 queries, just like "qs[0]; qs[0]; > qs[0]" would. >
Fine, be pedantic: qs = ... print len(qs) print qs[0] print qs[0] This is one query. qs = ... print len(qs) print qs[0] print qs[-1] print qs[0] How many queries for this? -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. For more options, visit https://groups.google.com/groups/opt_out.