[iOS] SQLite vs. Core Data

本文摘自别人的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.

你可能感兴趣的:([iOS] SQLite vs. Core Data)