ios - Updating core data performance -


i'm creating app uses core data store information web server. when there's internet connection, app check if there changes in entries , update them. now, i'm wondering best way go it. each entry in database has last updated timestamp. of these 2 more efficient:

  1. go through entries , check timestamp see entry needs updated.
  2. delete whole entity , re-download again.

sorry if seems obvious question , thanks!

i'd option 1 efficient, there case downloading (especially in large database large amounts of data) more efficient downloading parts need.


Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

java - activate/deactivate sonar maven plugin by profile? -

tsql - Pivot with Temp Table (definition for column must include data type) -- SQL Server 2008 -