开发者

Which are the most noteable things which make working with Core Data different than with MySQL?

开发者 https://www.devze.com 2023-01-01 18:37 出处:网络
One thing I have in mind is, that datasets in Core Data (or lets say: managed objects) have no ID like known from other database开发者_如何学Gos such as MySQL. Also, they\'re not in a specific guarant

One thing I have in mind is, that datasets in Core Data (or lets say: managed objects) have no ID like known from other database开发者_如何学Gos such as MySQL. Also, they're not in a specific guaranteed order.

What else makes Core Data much more "special" compared to working with a relational database like MySQL? Besides the whole object graph persisting and ORM stuff?


This is a good article explaining the main differences. The biggy for me is

'Core Data cannot operate on data without loading the data into memory'

This alone makes core-data and MySQL suited to totally different tasks.


The big difference I would say is that Core Data is built on an ORM, an Object Relational Mapping, while MySQL is just a relational database. You could actually host CoreData on MySQL if Apple wanted to let you. Instead they use a different embedded SQLight solution or an XML representation depending on what you want for your backing store.

0

精彩评论

暂无评论...
验证码 换一张
取 消