Part QuerySets into small chunks.
Django Query Chunk
Django Query Chunk is used to split big queries into multiple chunks for prevent (too high) memory usage. The chunk function will split the query set into several isolated queries.
- Python: >=3.6
- Django: >=2.0
pip install django-query-chunk
from query_chunk import chunk chunk_size = 300 for book in chunk(Book.objects.all(), chunk_size): # process book
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for django_query_chunk-0.0.1-py3-none-any.whl