diff --git a/osf/metrics/reporters/institutional_users.py b/osf/metrics/reporters/institutional_users.py index 876d675b610..e34875d4b28 100644 --- a/osf/metrics/reporters/institutional_users.py +++ b/osf/metrics/reporters/institutional_users.py @@ -11,9 +11,6 @@ from ._base import MonthlyReporter -_CHUNK_SIZE = 500 - - class InstitutionalUsersReporter(MonthlyReporter): '''build an InstitutionalUserReport for each institution-user affiliation @@ -34,7 +31,7 @@ def iter_report_kwargs(self, continue_after: dict | None = None): _user_qs = _institution.get_institution_users().filter(created__lt=_before_datetime) if continue_after and (_institution.pk == continue_after['institution_pk']): _user_qs = _user_qs.filter(pk__gt=continue_after['user_pk']) - for _user_pk in _user_qs.values_list('pk', flat=True).iterator(chunk_size=_CHUNK_SIZE): + for _user_pk in _user_qs.values_list('pk', flat=True): yield {'institution_pk': _institution.pk, 'user_pk': _user_pk} def report(self, **report_kwargs):