最近准备学习一下CoreData,但是对于这个技术似乎吐槽声非常大,那么这项技术是否有必要学习呢?如果不用CoreData又可以用什么代替它的功能呢?另外学习到什么程度应该开始学习这方面的技术?
ringa_lee2017-04-17 16:28:13
Of course it is necessary to learn. The official data persistence solution is not difficult, easy to deploy, and easy to migrate versions. The disadvantage is that it is not as efficient as SQLite in deleting large amounts of data. We have tested the performance of SQLite, Realm, and CoreData in the past. When there is a lot of data, the overall performance is SQLite > Realm > CoreData.
SQLite itself is difficult to use and requires a certain amount of experience. For database knowledge, packages such as FMDB are more recommended.
Realm has not been used specifically in the project. I have only read the documentation and experimented by myself, so it is not easy to say. It is very convenient to use.
阿神2017-04-17 16:28:13
SQLite or Realm. It is good to use the third-party library SQLite.siwft in Swift.