Accelerate bulk insert using Django's ORM?

后端 未结 7 730
暖寄归人
暖寄归人 2020-11-30 18:57

I\'m planning to upload a billion records taken from ~750 files (each ~250MB) to a db using django\'s ORM. Currently each file takes ~20min to process, and I was wondering i

7条回答
  •  抹茶落季
    2020-11-30 19:15

    Development django got bulk_create: https://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.bulk_create

提交回复
热议问题