--- id: django-bulk-update version: "2.2.0" license: unclear license_treatment: permissive maintenance: dormant --- # django-bulk-update — Bulk update using one query over Django ORM. License: permissive · Maintenance: dormant · Downloads: 606.3K/mo ## 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 above — 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 pip install django-bulk-update uv add django-bulk-update 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: unspecified - Install friction: low - Maintenance: dormant - Downloads: 606.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django bulk update, batch update django orm, django mass update, update multiple django objects, django bulk operations, single query update django, django batch operations, django-orm, performance, batch-operations [View on SkillFed](https://skillfed.io/packages/django-bulk-update) · [View on PyPI](https://pypi.org/project/django-bulk-update/)