Core Data VS Sqlite or FMDB…?

后端 未结 6 661
广开言路
广开言路 2020-12-07 10:40

Now this might look like a duplicate thread, but my question is that I have read a lot of questions like.. Core Data vs SQLite 3 and others but these are 2-3 years old. I ha

6条回答
  •  死守一世寂寞
    2020-12-07 11:21

    CoreData is not just an abstraction of an SQL database. CoreData is also does object graph management. CoreData can do things that FMDB simply can't do.

    As always: It really depends on your use case. But in 99% of cases CoreData is the right choice.

    If performance is critical, you still have to understand how a database works. But CoreData can deliver that performance if you use it the right way. But it takes some time to learn. There are many things that are trivial to do in CoreData that would be very complex to do in FMDB.

提交回复
热议问题