Re: A confusing output

2009-03-21 Thread Malcolm Tredinnick
On Sat, 2009-03-21 at 11:46 -0700, koranthala wrote: > Hi, >Using Django 1.1 >I have the following filter > p = DB.filter( value_in = values, name__in = names).select_related() If you're asking us to work out what's going on with respect to database queries, it's going to be very importan

A confusing output

2009-03-21 Thread koranthala
Hi, Using Django 1.1 I have the following filter p = DB.filter( value_in = values, name__in = names).select_related() I am facing 2 issues in here. 1. Unexpected DB queries I did p = list(p) The total queries was 1 I then did p = list(p) for a in p: pass Now, the total queries is comi