Support updating conflicts with QuerySet.bulk_create().
It would be useful having a parameter in bulk_create(), like bulk_create(objs, upsert=True) or bulk_create(objs, update_conflicts=True), that lets you update existing rows when there's a conflict, much like what you can already do for a single entity with update_or_create().
Change History
(21)
| Cc: |
Tom Forbes added
|
| Summary: |
Add `update_or_create()` in bulk → Support updating conflicts with QuerySet.bulk_create().
|
| Triage Stage: |
Unreviewed → Accepted
|
| Cc: |
Chih Sean Hsu added
|
| Owner: |
changed from nobody to Chih Sean Hsu
|
| Status: |
new → assigned
|
| Has patch: |
set
|
| Needs documentation: |
set
|
| Needs tests: |
set
|
| Needs documentation: |
unset
|
| Needs tests: |
unset
|
| Patch needs improvement: |
set
|
| Patch needs improvement: |
unset
|
| Needs documentation: |
set
|
| Patch needs improvement: |
set
|
| Needs documentation: |
unset
|
| Patch needs improvement: |
unset
|
| Needs tests: |
set
|
| Patch needs improvement: |
set
|
| Patch needs improvement: |
unset
|
| Patch needs improvement: |
set
|
| Patch needs improvement: |
unset
|
| Triage Stage: |
Accepted → Ready for checkin
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
Agreed, it would be great to support updating conflicts with
bulk_create():