#13067: make bulk-deletion lots faster
------------------------------------------+---------------------------------
 Reporter:  carljm                        |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  SVN       
 Keywords:                                |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 Model._collect_sub_objects is called separately for every individual
 object-to-be-deleted, and so every relation is followed and queried once
 for every individual object. It is possible to condense those queries down
 to a single bulk query per related model, which should result in massive
 speedups for large bulk QuerySet deletions with related objects. Even
 single-object deletions will be significantly faster if they have a large
 number of related objects to be cascade-deleted that themselves have
 relations.

 Alex Gaynor and I have been discussing implementation ideas, including how
 to do this without negatively impacting the fix for #6191.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13067>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to