On Tuesday, 20 August 2013 12:10:34 UTC+1, Victor Hooi wrote: > Hi, > > 1. Hmm, in that case, using bulk_create may not work - I'm currently > relying on generating the full lists of Products and ProductImages, then > saving in a batch at the end. > > So I need to loop through and call .save() individually on each Product, > then the corresponding ProductImages, before moving onto the next Product(). > > Are there any workarounds for this, or any way I could still leverage on > bulk_create()? > > Can you bulk save the Products first, then assign them to the ProductImages and bulk save those? -- DR.
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.