1
votes

I am confused when to use 1) Asynchronous fetch 2) multiple managed object context in core data while fetching large number of records, please help.

1

1 Answers

0
votes

You want to use Aysnch fetch when you are remotely pulling data. Since that data pull will take time (if on main thread) your app will freeze until it has got the requested data. The user will think that the app froze and nothing is happening when in reality it is fetching data to display.

You would use multiple managed object context when you have to modify data in your core data data base. Refer this answer for more.

You do the first one for your network requests and second one when modifying data in your database managed by core data.