diff options
| author | Simon Charette <charette.s@gmail.com> | 2020-08-30 03:00:15 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-08-31 09:22:59 +0200 |
| commit | 2986ec031d311891af8c59c845ce3b5e46d17a76 (patch) | |
| tree | eb62255fd5ccd91f6611c6768831f6dd29f12757 /docs | |
| parent | 655e1ce6b1ca8df71518060ae770c3ee647b9801 (diff) | |
[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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/3.1.1.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/3.1.1.txt b/docs/releases/3.1.1.txt index 452a922608..b1d598bf3c 100644 --- a/docs/releases/3.1.1.txt +++ b/docs/releases/3.1.1.txt @@ -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`). |
