Re: question about queryset count function

2008-11-14 Thread kaos
thanks ive been reading the documentation constantly, i just couldnt seem to find that particular tidbit ;] loving django On Nov 15, 5:50 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2008-11-14 at 20:26 -0800, kaos wrote: > > [...] > > > Will that return the count of all of the a

Re: question about queryset count function

2008-11-14 Thread Malcolm Tredinnick
On Fri, 2008-11-14 at 20:26 -0800, kaos wrote: [...] > Will that return the count of all of the articles in the given > category using a COUNT(*) query, or will it actually pull ALL of the > articles from the database and get the size of the array? > > Basically i'm trying to figure out if im be

question about queryset count function

2008-11-14 Thread kaos
Hi, I am new to Django (and python), and I have a question regarding database query stuff Basic info - I have a category model and an article model, and each article is linked to a category through a foreign key If i have the following code --- category = Category.objects.all()[0] return Http