skillfed

django-bulk-update

Bulk update using one query over Django ORM.

django-bulk-update v2.2.0 606.3K downloads/30d#5,792 on PyPI433
Permissive license DORMANT released

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-update

uv

uv add django-bulk-update

poetry

poetry add django-bulk-update

Installing 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

Environment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Dynamic Content

Tags

django bulk updatebatch update django ormdjango mass updateupdate multiple django objectsdjango bulk operationssingle query update djangodjango batch operations
django-ormperformancebatch-operations

More WWW/HTTP packages