Is there a concept of Transaction and Commit in Core Data?
I have a base in the app that is fed by an external file, however there are a lot of data and the application takes around 2 minutes to perform this import so I need to run it in the background.
Is there a way to start a Transaction when I start importing (delete all old data and insert new ones) and commit when finished?
As you can use the app while the import is being performed, it is possible that access to some data has been deleted and this crashes the app (so I need to perform in a transaction).
An alternative that I thought is to create a database cache in case it is not possible to do Transaction and Commit.