选择哪种 iPhone 数据模型?
我需要在某个地方获取一些数据以放入时间线中。数据结构是这样的:
- Item
- Name
- Year
- ShortInfo (mainly keywords and short texts)
- LongInfo (much text with videos/audios (urls)
我的一个朋友告诉我,我应该给你一个plist并将所有这些东西都放进去,但是sqlite数据库怎么样?有什么建议吗?
问候
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的数据集相当小,plist 比 SQLite 数据库更容易处理。只需一行代码即可将 plist 读入熟悉的数据结构(如数组或字典)。如果您的数据集太大以至于内存无法轻松容纳,或者您需要快速灵活的搜索,则 SQL 具有优势。
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.