{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/3"},{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/2"}],"enrichment":{"capability":"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.","skillfed_tags":["django-orm","performance","batch-operations"],"use_cases":["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."],"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.\n\nThe 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\u2014no raw SQL needed\u2014and 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.","worth_installing":"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."},"id":"django-bulk-update","links":{"html":"https://skillfed.io/packages/django-bulk-update","md":"https://skillfed.io/packages/django-bulk-update.md","pypi":"https://pypi.org/project/django-bulk-update/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2017-08-12","license_spdx":null,"license_treatment":"permissive","name":"django-bulk-update","python_support":"unspecified","summary":"Bulk update using one query over Django ORM."},"popularity":{"monthly_downloads":606316,"position":5792,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.2.0"}
