mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #31965 -- Adjusted multi-table fast-deletion on MySQL/MariaDB.
The optimization introduced in7acef095d7
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 in5b83bae031
. Thanks Anton Plotkin for the report. Refs #23576.
This commit is contained in:
parent
38fce49c82
commit
f6405c0b8e
5 changed files with 35 additions and 11 deletions
|
@ -55,3 +55,7 @@ Bugfixes
|
|||
* Fixed a ``QuerySet.order_by()`` crash on PostgreSQL when ordering and
|
||||
grouping by :class:`~django.db.models.JSONField` with a custom
|
||||
:attr:`~django.db.models.JSONField.decoder` (:ticket:`31956`).
|
||||
|
||||
* Fixed a ``QuerySet.delete()`` crash on MySQL, following a performance
|
||||
regression in Django 3.1 on MariaDB 10.3.2+, when filtering against an
|
||||
aggregate function (:ticket:`31965`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue