#33759: Using subquery to filter a model delete generates a sub-optimal SQL
-------------------------------------+-------------------------------------
     Reporter:  Christofer Bertonha  |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  4.0
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * cc: Simon Charette (added)
 * type:  Bug => Cleanup/optimization


Comment:

 This behavior was changed in 4074f38e1dcc93b859bbbfd6abd8441c3bca36b3 to
 prevent:
 {{{
 django.db.utils.NotSupportedError: (1235, "This version of MySQL doesn't
 yet support 'LIMIT & IN/ALL/ANY/SOME subquery'")
 }}}
 on MySQL. I have no idea for an alternative fix.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33759#comment:4>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018120abda41-4a817c59-609f-4ebe-8151-a4f9c5f7a074-000000%40eu-central-1.amazonses.com.

Reply via email to