#34277: Add where clause in QuerySet.bulk_create() when update_conflicts=True
--------------------------------------------+------------------------
Reporter: Alain Delplanque | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 4.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
--------------------------------------------+------------------------
To import objects from one database to another, it would be necessary to
filter rows that are subject to an update. Which in plain sql looks like:
{{{
INSERT INTO my_table (field1, ...)
VALUES ...
ON CONFLICT (pk)
DO UPDATE SET field1 = EXCLUDED.field1, ...
WHERE lastupdated < EXCLUDED.lastupdated
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34277>
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/01070185d3e512da-d975fc57-6870-413f-abc2-b92f084d2da1-000000%40eu-central-1.amazonses.com.