On Sep 11, 1:12 pm, Tobias McNulty <tob...@caktusgroup.com> wrote: > Hi All, > > I may be missing something, but queryset.delete() seems oddly implemented in > Django. It does a select to get all the IDs to be deleted, and then deletes > them, in blocks of 100 I believe, by ID.
It's because .delete() is emulating the behavior of the SQL constraint ON DELETE CASCADE A list of objects to be deleted is recursively populated, then this complete list of objects is iteratively deleted (also calling the pre_delete and post_delete signals in their respective places). -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.