Feature Request: Bulk Insert on Fixtures (loaddata)

91 views
Skip to first unread message

Brad Ruderman

unread,
Oct 26, 2013, 9:54:53 PM10/26/13
to django-d...@googlegroups.com
Hi Django Devs-

I wanted to request the feature that when running (for example):

python manage.py loaddata data.json 

That it performs a bulk load instead of individual transactions. The reason I am requesting this feature is when using PaaS vendors (like Heroku/ClearData) they restrict your number of queries per hour on free development tiers thus when you try load your data, it usually hits that capacity quite quickly. On the free tier for ClearData, its only 3k per hour queries.

Thanks,
Brad

Florian Apolloner

unread,
Oct 27, 2013, 6:19:37 AM10/27/13
to django-d...@googlegroups.com
Patches welcome I'd say, the only issue I see is that we loose the ability to provide good information which object caused the bulk_create to fail; any ideas on that?

Cheers,
Florian
Reply all
Reply to author
Forward
0 new messages