#9519: Add QuerySet.bulk_delete() that issues only a single SQL query
-------------------------------------+-------------------------------------
     Reporter:  Joey Wilhelm         |                    Owner:  Akash
                                     |  Kumar Sen
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  database, queryset,  |             Triage Stage:  Accepted
  delete                             |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak):

 Replying to [comment:32 Akash Kumar Sen]:
 > The current {{{delete()}}} method for a queryset already deletes objects
 in bulk. Do we need another {{{bulk_delete()}}} method for the same?

 Have you checked all comments and how it actually works? `delete()`
 collects objects PKs (direct and related), deletes, sends signals, etc.
 This issue is about adding `bulk_delete()` method which will bypass all
 these steps and perform `DELETE` based on the queryset filters.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/9519#comment:33>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070188510a8c64-cd33ae6d-7160-4510-a2f9-7467779102af-000000%40eu-central-1.amazonses.com.

Reply via email to