I'm encountering a situation in which a QuerySet qs I construct has a
positive number of records, as confirmed by qs.count() being over 1
million. However, when I try to iterate through those records using
qs.iterator(), there're no iterations being performed.
I try reconstructing the queryset and test: test_iterator =
qs.interator(); next(test_iterator) -- and I confirm that this returns the
StopIteration error, which means the iterator is indeed empty.
--
Ticket URL: <https://code.djangoproject.com/ticket/30959>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* severity: Release blocker => Normal
* type: Uncategorized => Bug
* component: Uncategorized => Database layer (models, ORM)
* resolution: => worksforme
Comment:
`iterator()` works fine for me on PostgreSQL. I don't think that's an
issue in Django.
--
Ticket URL: <https://code.djangoproject.com/ticket/30959#comment:1>