#10304: topics/db/queries.txt about delete() lies! ------------------------------------------+--------------------------------- Reporter: telenieko | Owner: nobody Status: new | Milestone: Component: Database layer (models, ORM) | Version: 1.0 Keywords: delete | Stage: Unreviewed Has_patch: 0 | ------------------------------------------+--------------------------------- queries.txt says: {{{ Keep in mind that this will, whenever possible, be executed purely in SQL, and so the ``delete()`` methods of individual object instances will not necessarily be called during the process. }}}
Given how delete() is implemented in QuerySet one would say it's almost impossible to avoid calling the delete() of every object (to not say it does lots of things). Option a would be to fix the docs, but current behaviour makes it almost impossible to delete large querysets without recurring to manual SQL (And dealing with QS cache, etc later). So this may have to be fixed in some way, or a workaround documented. -- Ticket URL: <http://code.djangoproject.com/ticket/10304> 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-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 -~----------~----~----~----~------~----~------~--~---