﻿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
19527	Allow QuerySet.bulk_create() to set the primary key of its objects	Vlada Macek	nobody	"(Sorry if I missed a pre-existing ticket for this.)

There is an IMO big caveat of bulk_create(): It does not set primary key of objects it creates.

In my current project, using bulk_create would improve performance, but as I often need an id of the newly created objects, I have to save them one by one.

I think it would be perfect if bulk_create starts to set the primary keys of the objects in the given sequence. At least postgresql supports it (""RETURNING id"" clause gives us a set of id's).
"	New feature	new	Database layer (models, ORM)	dev	Normal		oracle QuerySet.bulk_create	charette.s@… gwahl@… w2lkm2n@… mszamot@… Akos Ladanyi Shai Berger acrefoot@… benth dev@… Mariusz Felisiak	Accepted	0	0	0	0	0	0
