Skip to main content

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.

Requirements

  • Python: >=3.6
  • Django: >=2.0

Installation

pip install django-query-chunk

Usage

from query_chunk import chunk

chunk_size = 300

for book in chunk(Book.objects.all(), chunk_size):
    # process book

Metadata

Release files for django-query-chunk 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-query-chunk 0.0.1
File Size Uploaded
django-query-chunk-0.0.1.tar.gz 1.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-query-chunk 0.0.1
File Interpreter ABI Platform
django_query_chunk-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.5 kB

Release files / django-query-chunk-0.0.1.tar.gz

Download URL django-query-chunk-0.0.1.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3a60bbc00b6611062495e1c8f2a19a29642d91f0ee291363fc1410cf9627324a
BLAKE2b-256 checksum
How to use checksums
f563719dcfdad77dc191df38b7b04321e53d140cb2482d57f51edd98e1e03aca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.3

Release files / django_query_chunk-0.0.1-py3-none-any.whl

Download URL django_query_chunk-0.0.1-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38951dd31f65c7e2af3e94a065c85a2d2185a8d29c0301a7cf6e3ecce54e4203
BLAKE2b-256 checksum
How to use checksums
ee4942057f157965dcaac0a80b167be50079d16c59b7460f2dc472cba2c13dee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page