def safe_bulk_create(objs): """Wrapper to overcome the size limitation of standard bulk_create()""" if objs: BULK_SIZE = 900/len(objs[0].__class__._meta.fields) for i in range(0,len(objs),BULK_SIZE): objs[0].__class__.objects.bulk_create(objs[i:i+BULK_SIZE])