django-bulk-update
Bulk update using one query over Django ORM.
What it is and what it does
django-bulk-update is a Django extension that replaces the typical pattern of calling .save() on each object with a single bulk update query. Instead of issuing one SQL UPDATE per object, it batches all changes into one or a few queries, dramatically reducing database round-trips. You modify your model instances in memory, then pass them to either a manager method (if you add BulkUpdateManager to your model) or a standalone helper function, specifying which fields to update or which to exclude. The package handles batching by size if you need to split very large updates into chunks.
The main value is performance: the description shows a 52.90x speedup over individual saves in a test with 1000 objects. It works with Django's ORM directly—no raw SQL needed—and integrates cleanly into existing codebases. However, the project is dormant (last release in 2017, last commit in 2023), so it carries risk if you need compatibility with recent Django or Python versions or if bugs emerge.
Use it for:
- Bulk-update records after a batch import or data migration without issuing thousands of individual queries.
- Modify multiple model instances in a loop and persist them all at once instead of calling save() repeatedly.
- Update specific fields on many objects while excluding others to avoid unnecessary database writes.
- Batch-update large datasets in chunks using batch_size to avoid memory or query-size limits.
- Replace slow save() loops in admin actions or management commands with a single efficient query.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Performs bulk updates of Django ORM objects in a single database query instead of individual saves, with options to specify or exclude particular fields and batch updates by size.
Yes, if you are on Django 1.8 or later and need to bulk-update many objects efficiently. The package is simple, has no dependencies, and the core logic is unlikely to break. However, test thoroughly with your Django version before relying on it in production, and monitor the repository for any compatibility issues with newer Django releases. If you are on Django 3.2 or later, verify whether Django's native bulk_update() method meets your needs first.
Install
django-bulk-update on PyPI
pip
pip install django-bulk-updateuv
uv add django-bulk-updatepoetry
poetry add django-bulk-updateInstalling django-bulk-update
Before you install
Low install friction with no runtime dependencies. Maintenance is dormant—last release was 2017-08-12 and last commit 2023-10-03, so the package is stable but receives no active development or security updates.
License in practice
Released under MIT License (permissive), so you can use it freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install django-bulk-update
from django_bulk_update.manager import BulkUpdateManager
from django_bulk_update.helper import bulk_update
objs = []
for obj in objs:
obj.name = 'new_value'
bulk_update(objs, update_fields=['name'])
Requires Django 1.8 or later; the package is not actively maintained and may have compatibility issues with modern Django versions.
Verify before relying
- Compatibility with Django versions released after 2017-08-12 (the last release date) is not documented.
- Whether the package works correctly with modern Python versions (3.10+) given its age and dormant status.
- Support for Geometry Fields, which is listed as a TODO in the project.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 3,289 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 606,316/month — #5,792 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: django_bulk_update-2.2.0-py2.py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
salesforce-bulkPython client library for the Salesforce Bulk…
permissive · top 5,000 on PyPI
django-pg-bulk-updateExecutes bulk update and bulk create operations…
permissive · top 15,000 on PyPI
django-postgres-copyProvides Django ORM integration for…
permissive · top 5,000 on PyPI
django-anonAnonymizes Django model data in place using…
permissive · top 15,000 on PyPI
djangorestframework-bulkAdds bulk create, update, and delete operations…
permissive · top 15,000 on PyPI
django-pg-returningExtends Django's ORM to capture and return rows…
permissive · top 15,000 on PyPI
django-celery-emailRoutes Django email sending through Celery task…
permissive · top 15,000 on PyPI
salesforce-apiWraps Salesforce's REST and SOAP APIs to…
permissive · top 15,000 on PyPI
tortoise-ormTortoise ORM is an async-native…
permissive · top 15,000 on PyPI
djongoDjongo translates Django ORM queries into…
permissive · top 15,000 on PyPI