Hi All,
We have an issue to clear NSManageObjectContext cache.We have use nsmangeobjectcontext in multithread environment where we used maincontext as well as privatecontext to save data into database.
We have tried "reset()" as well as "func refresh(_ object: NSManagedObject,mergeChanges flag: Bool)" to clear nsmanageobjectcontext cache to make context's registered object to fault value,but it did not work.We are dealing with thousands of data to insert or update into data base and we are facing UI freez issue.
That's why we are asking all of you for any other solution to clear the nsmanageobject cache after all data are save to store.Is there any other good way to free the cache,so that device RAM memory would be freed to some good extend.
**Note : We have faced the problem in both Objective-C as well as swift environment.
So Please suggest us some way to clear NSManageObjectContext cache.