﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28668	Add support for ON CONFLICT to bulk_create	Tom Forbes	nobody	"When using bulk_create it would be nice to support `ON CONFLICT DO NOTHING`, which allows existing rows to be included in the `bulk_create` call, e.g:

{{{#!python
Comment.objects.create(name='test', text='test')
Comment.objects.bulk_create(Comment(name='test', text='test'), on_conflict=IGNORE)  # Does not throw an exception
}}}

All the databases we support have syntax for this, as well as updating/replacing fields.

This is a spin-off of https://code.djangoproject.com/ticket/28641, just including the ON CONFLICT idea which is backwards-compatible and would be easier to implement than the others. 
"	New feature	new	Database layer (models, ORM)	dev	Normal				Unreviewed	0	0	0	0	0	0
