#31685: Support updating conflicts with QuerySet.bulk_create().
-------------------------------------+-------------------------------------
Reporter: Vitor Pereira | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: bulk insert update | Triage Stage: Accepted
upsert |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* 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>
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/062.d848b371d6a72706677e3a551da56986%40djangoproject.com.