mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #18676 -- Allow fast-path deletion of objects
Objects can be fast-path deleted if there are no signals, and there are no further cascades. If fast-path is taken, the objects do not need to be loaded into memory before deletion. Thanks to Jeremy Dunck, Simon Charette and Alex Gaynor for reviewing the patch.
This commit is contained in:
@@ -149,6 +149,12 @@ Django 1.5 also includes several smaller improvements worth noting:
|
||||
* Django now provides a mod_wsgi :doc:`auth handler
|
||||
</howto/deployment/wsgi/apache-auth>`
|
||||
|
||||
* The :meth:`QuerySet.delete() <django.db.models.query.QuerySet.delete>`
|
||||
and :meth:`Model.delete() <django.db.models.Model.delete()>` can now take
|
||||
fast-path in some cases. The fast-path allows for less queries and less
|
||||
objects fetched into memory. See :meth:`QuerySet.delete()
|
||||
<django.db.models.query.QuerySet.delete>` for details.
|
||||
|
||||
Backwards incompatible changes in 1.5
|
||||
=====================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user