Misago icon indicating copy to clipboard operation
Misago copied to clipboard

Issue1230

Open rrhg opened this issue 5 years ago • 1 comments

Replace chunk_queryset() util with server-side cursor #1230 Motivation

Currently Misago uses chunk_queryset utility that iterates on queryset in chunks of specified length, but this task can be easily replaced with queryset.iterator() which on PostgreSQL should use chunking in database.

Solution

Change function util chunk_queryset to iterator() method.

rrhg avatar Jul 14 '20 22:07 rrhg

Coverage Status

Coverage increased (+0.04%) to 97.572% when pulling c9254c5267b764c2e046fdbf73c4c3fefd79e3c4 on rrhg:issue1230 into da14e8ef712a77603fdfec8bbff67c526c7d0c5c on rafalp:master.

coveralls avatar Jul 14 '20 22:07 coveralls