#9519: Add QuerySet.bulk_delete() that issues only a single SQL query -------------------------------------+------------------------------------- Reporter: Tarken | Owner: nobody Type: New feature | Status: new Component: Database layer | Version: master (models, ORM) | Resolution: Severity: Normal | Triage Stage: Accepted Keywords: database, queryset, | Needs documentation: 0 delete | Patch needs improvement: 0 Has patch: 0 | UI/UX: 0 Needs tests: 0 | Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by akaariai): API proposal for bulk_delete(): 1. Does not send signals. 2. Does "fast-path" deletion like in normal deletion where possible. 3. [maybe] If cascades are needed, then cascading is implemented by fetching just the needed values from the DB, not as objects but as raw values. The problem is that no. 3 above seems to be somewhat messy to implement. So, maybe just error out if cascades are needed instead? -- Ticket URL: <https://code.djangoproject.com/ticket/9519#comment:21> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.