﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30959	QuerySet.iterator() returns no result although QuerySet.count() is a positive number.	Vinh Luong	nobody	"I'm using Django 2.2.6 on Python 3.7. My database is PostgreSQL engine version 11.5, hosted on Amazon RDS.

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."	Bug	closed	Database layer (models, ORM)	2.2	Normal	worksforme	PostgreSQL, iterator		Unreviewed	0	0	0	0	0	0
