Revisit ticket 2713?

2009-08-19 Thread Stavros
Ticket 2713 (http://code.djangoproject.com/ticket/2713) was closed but the proposed solution didn't fix the problem (it seems to me that it was closed without being tested), so I submitted and tested a patch that fixes it. Can someone look at this three-year old bug? I'm surprised it hasn't bitten

Re: Question about queryset's iterator behaviour

2007-10-28 Thread Stavros
No, I don't want to use a paginator. I don't even display the results, I just process them. I was weighing in in favor of turning iterator() into an actual iterator that fetches a few results at a time, as per the discussion at hand. --~--~-~--~~~---~--~~ You rece

Re: Question about queryset's iterator behaviour

2007-10-28 Thread Stavros
I'm developing an app that takes about 3m rows from the DB, and currently everything is loaded in memory. This is unacceptable, since the script rapidly uses up all the memory available in the machine and stops responding. It would be good if django could return an actual iterator, so we could wor