#18556: .remove() on a reverse foreign key executes too many queries
-------------------------------------+-------------------------------------
               Reporter:  Alex       |          Owner:  nobody
                   Type:             |         Status:  new
  Cleanup/optimization               |        Version:  1.4
              Component:  Database   |       Keywords:
  layer (models, ORM)                |      Has patch:  0
               Severity:  Normal     |    Needs tests:  0
           Triage Stage:  Accepted   |  Easy pickings:  0
    Needs documentation:  0          |
Patch needs improvement:  0          |
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 It does one query per object received, instead of just one for the entire
 batch.  Attached is a patch which fixes this.  It's technically not
 backwards compatible because signals are no longer sent, however one could
 artificially send them.  Also, in the event of an error, none of the
 objects will be modified, whereas currently some of them will be.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18556>
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