--
Ticket URL: <https://code.djangoproject.com/ticket/31685>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: Tom Forbes (added)
* stage: Unreviewed => Accepted
Comment:
Agreed, it would be great to support updating conflicts with
`bulk_create()`:
- [https://www.postgresql.org/docs/current/sql-insert.html#SQL-ON-CONFLICT
ON CONFLICT DO UPDATE] on PostgreSQL and SQLite,
- [https://dev.mysql.com/doc/refman/5.7/en/insert-on-duplicate.html ON
DUPLICATE KEY UPDATE] on MySQL.
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:1>
* cc: Chih Sean Hsu (added)
* owner: nobody => Chih Sean Hsu
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:2>
Comment (by Chih Sean Hsu):
I have opened PR https://github.com/django/django/pull/13065. It is still
on going.
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:3>
* needs_docs: 0 => 1
* has_patch: 0 => 1
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:4>
* needs_docs: 1 => 0
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:5>
Comment (by Chih Sean Hsu):
It's done and waiting for review.
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:6>
Comment (by Alexandr Tatarinov):
Added a comment to pull request about potential room for improvement.
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:7>
* cc: Adam Johnson (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:8>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:9>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:10>
* needs_better_patch: 0 => 1
* needs_docs: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:11>
* needs_better_patch: 1 => 0
* needs_docs: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:12>
* needs_better_patch: 0 => 1
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:13>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:14>
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:15>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:16>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:17>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:18>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"0f6946495a8ec955b471ca1baaf408ceb53d4796" 0f694649]:
{{{
#!CommitTicketReference repository=""
revision="0f6946495a8ec955b471ca1baaf408ceb53d4796"
Fixed #31685 -- Added support for updating conflicts to
QuerySet.bulk_create().
Thanks Florian Apolloner, Chris Jerdonek, Hannes Ljungberg, Nick Pope,
and Mariusz Felisiak for reviews.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:19>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"c627226d05dd52aef59447dcfb29cec2c2b11b8a" c627226d]:
{{{
#!CommitTicketReference repository=""
revision="c627226d05dd52aef59447dcfb29cec2c2b11b8a"
Fixed #33799, Refs #31685 -- Added parameters for updating conflicts to
QuerySeta.abulk_create().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:20>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"531c96de34d746a58b9b7320378296730312c016" 531c96de]:
{{{
#!CommitTicketReference repository=""
revision="531c96de34d746a58b9b7320378296730312c016"
[4.1.x] Fixed #33799, Refs #31685 -- Added parameters for updating
conflicts to QuerySeta.abulk_create().
Backport of c627226d05dd52aef59447dcfb29cec2c2b11b8a from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31685#comment:21>