#16427: truncate table method in ORM -------------------------------------+------------------------------------- Reporter: | Owner: nobody adamnelson | Status: closed Type: New | Component: Database layer feature | (models, ORM) Milestone: | Severity: Normal Version: 1.3 | Keywords: Resolution: wontfix | Has patch: 0 Triage Stage: Design | Needs tests: 0 decision needed | Easy pickings: 0 Needs documentation: 0 | Patch needs improvement: 0 | UI/UX: 0 | -------------------------------------+------------------------------------- Changes (by lukeplant):
* status: new => closed * resolution: => wontfix Comment: wontfixing, for the reasons aaugustin gave. If delete() is too slow use manual SQL truncate. https://docs.djangoproject.com/en/dev/topics/db/sql /#executing-custom-sql-directly . For specialised needs, this is good enough, and it's not hard to get the db table name for a model. -- Ticket URL: <https://code.djangoproject.com/ticket/16427#comment:3> 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 this group at http://groups.google.com/group/django-updates?hl=en.