Is this going to be made available for on-demand viewing, e.g. on youtube?
You don't need to do it this way. Instead, get the id of the parent object and then, as you create each child object,
do childobj. <ParentPropertyName>SetObjectId(parentId)
and save the child object. That should solve your memory problems.
This is a technique that doesn't just apply to relationships but to any object property where you can avoid swizzling it into memory.
Isn't the issue here that you should unswizzle each child object as you move to the next item in your child collection?
Log in or create a new account to continue