[iOS] SQLite vs. Core Data

来源:互联网 发布:淘宝短信接口 编辑:程序博客网 时间:2024/06/05 04:15

本文摘自别人的blog,仅记录下最终结论,作为未来可能面对两者选型时的一个指导。原文见这里iOS Data Storage: Core Data vs. SQLite

Here are some final key points about SQLite and Core Data to keep in mind:

SQLite:
- SQLite is, as advertised, lightweight.
- SQLite uses less memory and storage space.
- SQLite can be tedious and error-prone to code.
- SQLite is supported on Android and Microsoft Windows Phone.

Core Data:
- Longer learning curve: it takes some study to understand.
- Objects are easier to work with.
- Underlying storage details are handled atomically (support for iCloud).
- Undo and Redo features.

0 0