美文网首页
[iOS] SQLite vs. Core Data

[iOS] SQLite vs. Core Data

作者: NoteCode | 来源:发表于2015-06-13 22:47 被阅读170次

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

          本文链接:https://www.haomeiwen.com/subject/gngjqttx.html