﻿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
26400	QuerySet bulk_create method to handle generators to prevent loading all objects in memory at once	Alexander Sterchov	nobody	"In my case I need to create huge amount of objects using bulk create method with batch_size parameter.

The problem is I don't have enough memory to store all objects in a list. Even if I transmit generator it would be converted to list anyway (https://github.com/django/django/blob/1.9.4/django/db/models/query.py#L438). 

I want to implement a feature to handle generators properly without loading all objects in memory, but bulk_create method returns list of objects as a result. That is unacceptable on large amounts of data.

How can I properly implement the method: create a new one or add a parameter to actual method?"	Cleanup/optimization	closed	Database layer (models, ORM)	dev	Normal	wontfix	bulk_create		Someday/Maybe	0	0	0	0	0	0
