Problem: I am doing a really big import where I parse an XML file. For every 10 parsed managed objects, I want to save the Managed Object Context and get rid of those 10 objects
In a situation like this there are four things to remember to do:
NSAutoreleasePool
This will flush all of the memory being used and clear the context.