#31685: Add `update_or_create()` in bulk
-------------------------------------+-------------------------------------
               Reporter:  Vitor      |          Owner:  nobody
  Sousa Pereira                      |
                   Type:  New        |         Status:  new
  feature                            |
              Component:  Database   |        Version:  master
  layer (models, ORM)                |       Keywords:  bulk insert update
               Severity:  Normal     |  upsert
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 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()`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31685>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/047.484e2ce2d2c27bd9d9e2b175e54f2201%40djangoproject.com.

Reply via email to