trnc
trnc

Reputation: 21577

which iphone data model to choose?

i need to get some data somewhere to put in a timeline. the data strcture is like this:

- Item
  - Name
  - Year
  - ShortInfo (mainly keywords and short texts)
  - LongInfo (much text with videos/audios (urls)

a friend of mine told me i should you a plist and get all that stuff in there, but what about a sqlite database? any advice?

regards

Upvotes: 2

Views: 453

Answers (1)

Ole Begemann
Ole Begemann

Reputation: 135548

If your dataset is fairly small, plists are way easier to handle than a SQLite database. It's just one line of code to read a plist into a familiar data structure like an array or dictionary. SQL has advantages if your dataset is so large that it does not fit comfortably in memory or if you need fast and flexible searching.

Upvotes: 2

Related Questions