Open clokep opened 2 years ago
See Django 4.1 release notes:
QuerySet.iterator() now supports prefetching related objects as long as the chunk_size argument is provided. In older versions, no prefetching was done.
QuerySet.iterator()
chunk_size
See Django 4.1 release notes: