Graphics Programs Reference
In-Depth Information
Trade-offs of Persistence Mechanisms
At this point, you can start thinking about the tradeoffs between the common ways that iOS
applications can store their data Which is best for your application? Use Table 16.1 to help
you decide.
Table 16.1 Data storage pros and cons
Technique
Pros
Cons
Allows ordered relation-
ships (arrays, not sets).
Easy to deal with ver-
sioning.
Reads all the objects in (no faulting). No incremental
updates.
Archiving
Makes it easy to share
data with other devices
and applications.
Web Ser-
vice
Requires a server and a connection to the Internet.
Versioning is awkward (but can certainly be done us-
ing an NSModelMapping ). No real ordering with-
in an entity, although to-many relationships can be
ordered.
Lazy fetches by default.
Incremental updates.
Core Data
 
Search WWH ::




Custom Search