user2538941
user2538941

Reputation: 1

Saving 10,000 records Core Data

I work with the synchronization application. How do I "roughly" open the database (Core Data) to perform 10,000 operations (delete, save, etc.) and then close?

I understand that now works like this:

Correct if wrong, I will be only too happy

Upvotes: 0

Views: 349

Answers (1)

William Falcon
William Falcon

Reputation: 9813

Just do your 10,000 operations and at the end save the managed object context. Just make sure to save at the end and not after each object. This will speed up the progress dramatically.

Upvotes: 1

Related Questions