#17338: [nonrel] supports_deleting_related_objects database feature flag
-------------------------------------+-------------------------------------
     Reporter:  jonash               |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Database layer       |                  Version:  SVN
  (models, ORM)                      |               Resolution:  wontfix
     Severity:  Normal               |             Triage Stage:
     Keywords:  nonrel               |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by carljm):

 * status:  new => closed
 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * type:  Uncategorized => New feature
 * needs_docs:   => 0
 * resolution:   => wontfix


Comment:

 This ticket doesn't make sense to me, as Django's related-object-deletion
 code doesn't depend on any particular support from the backend, other than
 the basic abilities to query for things and delete them. It is (sort of)
 _emulating_ SQL cascading deletes, but it does so in a way that doesn't
 assume anything at all from the backend.

 It might make some sense to be able to mark backends according to whether
 they support "related objects" (e.g. FKs) at all, and then skip related-
 object-collection on deletion if not. Though I'm not sure even that would
 be necessary - in the case of a backend not supporting related fields, I'd
 presume that would be caught much earlier (like in model validation); at
 the point of deletion, if the model has no related fields, the deletion
 code won't try to collect any related objects anyway, no particular extra
 check is needed.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17338#comment:1>
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to