I have an app that downloads some documents from a server and saves them into a persistent store (Sqlite). I hold the documents data in a NSData property of a NSManagedObject and everytime I download a new doc, basically the app saves the data to the persistent store, but also keeps it in memory, which I don’t want. Is there a way to force faulting? Somehow, I would like to release the memory, and keep the data only in the database. Hope it makes sense, I’m a beginner with Core Data.
I have an app that downloads some documents from a server and saves them
Share
You can turn a NSManagedObject into fault by calling refreshObject:mergeChanges:.