Reference: https://mysqlserverteam.com/mysql-8-0-1-using-skip-locked-and-
nowait-to-handle-hot-rows/
--
Ticket URL: <https://code.djangoproject.com/ticket/29380>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
* type: New feature => Cleanup/optimization
* easy: 1 => 0
Old description:
> MYSQL 8+ already supports skip locked and no wait options while Django DB
> backend doesn't support it for MYSQL.
>
> Reference: https://mysqlserverteam.com/mysql-8-0-1-using-skip-locked-and-
> nowait-to-handle-hot-rows/
New description:
MySQL 8+ supports `skip_locked` and `nowait` options but the MySQL
database backend doesn't support them.
Reference: https://mysqlserverteam.com/mysql-8-0-1-using-skip-locked-and-
nowait-to-handle-hot-rows/
--
--
Ticket URL: <https://code.djangoproject.com/ticket/29380#comment:1>
* status: new => assigned
* owner: nobody => Nicolas Noé
--
Ticket URL: <https://code.djangoproject.com/ticket/29380#comment:2>
Comment (by bakabiko):
I already have a patch, you can assign the ticket to me.
--
Ticket URL: <https://code.djangoproject.com/ticket/29380#comment:3>
* cc: Adam (Chainz) Johnson (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/29380#comment:4>
* owner: Nicolas Noé => (none)
* status: assigned => new
Comment:
Deassigned so bakabiko can take it if he/she wants!
--
Ticket URL: <https://code.djangoproject.com/ticket/29380#comment:5>
* owner: (none) => bakabiko
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/29380#comment:6>
* has_patch: 0 => 1
Comment:
https://github.com/django/django/pull/9934
--
Ticket URL: <https://code.djangoproject.com/ticket/29380#comment:7>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/29380#comment:8>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/29380#comment:9>
Comment (by bakabiko):
the pull request is updated.
--
Ticket URL: <https://code.djangoproject.com/ticket/29380#comment:10>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"a7bc1aea03508f544c9dfac0f34b01996653cef4" a7bc1aea]:
{{{
#!CommitTicketReference repository=""
revision="a7bc1aea03508f544c9dfac0f34b01996653cef4"
Fixed #29380 -- Added support for QuerySet.select_for_update()'s nowait
and skip_locked options on MySQL 8+.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29380#comment:11>
Comment (by Tim Graham <timograham@…>):
In [changeset:"54b29e022d14c2fee34c01a41f016d531bef5057" 54b29e0]:
{{{
#!CommitTicketReference repository=""
revision="54b29e022d14c2fee34c01a41f016d531bef5057"
[2.1.x] Fixed #29380 -- Added support for QuerySet.select_for_update()'s
nowait and skip_locked options on MySQL 8+.
Backport of a7bc1aea03508f544c9dfac0f34b01996653cef4 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29380#comment:12>