﻿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
28641	Improvements to QuerySet.bulk_create()	Дилян Палаузов	nobody	"https://docs.djangoproject.com/en/1.11/ref/models/querysets/#bulk-create does not state what bulk_create returns, so that the implementation can be optimizerd by making bulk_create() return None.

As QuerySet.get_or_create() ensures, that after the operation an object exists in the database, bulk_create() can do the same on Postgresql using ""ON CONFLICT DO NOTHING"", possibly taking a parameter.  I guess currently bulk_create fails as whole, if any INSERT cannot be performed, so that a developer has to do ""for x in Y: x.get_or_create()"" instead of buld_create([x for x in Y]).

INSERT (for bulk_create) can also use RETURNING to get the ids of the newly created objects which can be used then to send signals.  Is there any particular reason, why on Postgresql bulk_create() does not send pre_save / post_save signals?"	New feature	closed	Database layer (models, ORM)	1.11	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
