I am creating a bird app. This app should also work offline. So I decided to use Core Data. I plan to have 1 table with approximately 700 records. All birds will be displayed in tabular form. The workflow should look like this:
- The user launches the application
- The request is sent to the server in the background
- The answer is parsed.
- Database updated
I am interested in the best way to do this. I want to add a query to the "last change" field, this will reduce the number of database updates. Should I delete all instances of my entity or loop them one by one, comparing the "last modified" field, and then update / delete / insert? Has anyone done profiling in time? When the user opens the bird screen at a time when old instances are already deleted and new ones are not inserted, he will see an empty table view, how to deal with this situation, do I need a tmp object? Are there any other flaws that I missed?
ios web-services xcode core-data
user801255
source share