#31965: MySQL fast-delete optimizations introduced in Django 3.1 don't properly
deal with aggregation and cause performance regression.
-------------------------------------+-------------------------------------
     Reporter:  Simon Charette       |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  3.1
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"2986ec031d311891af8c59c845ce3b5e46d17a76" 2986ec03]:
 {{{
 #!CommitTicketReference repository=""
 revision="2986ec031d311891af8c59c845ce3b5e46d17a76"
 [3.1.x] Fixed #31965 -- Adjusted multi-table fast-deletion on
 MySQL/MariaDB.

 The optimization introduced in 7acef095d73 did not properly handle
 deletion involving filters against aggregate annotations.

 It initially was surfaced by a MariaDB test failure but misattributed
 to an undocumented change in behavior that resulted in the systemic
 generation of poorly performing database queries in 5b83bae031.

 Thanks Anton Plotkin for the report.

 Refs #23576.

 Backport of f6405c0b8ef7aff513b105c1da68407a881a3671 from master
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31965#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/067.31866a1617c93340e4c462c6a694e3cc%40djangoproject.com.

Reply via email to