哪些是最值得注意的事情,使核心数据不同于MySQL? [英] Which are the most noteable things which make working with Core Data different than with MySQL?

查看:126
本文介绍了哪些是最值得注意的事情,使核心数据不同于MySQL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想到的一件事是,Core Data中的数据集(或者说:托管对象)没有其他数据库(如MySQL)知道的ID。



与使用MySQL这样的关系数据库相比,Core Data更加特别吗?除了整个对象图表持久化和ORM的东西?

解决方案

这是一篇很好的文章,解释了主要的区别。对我来说最大的是


Core Data无法对数据
进行操作,而无需将数据加载到内存中


这使得核心数据和MySQL适合完全不同的任务。


One thing I have in mind is, that datasets in Core Data (or lets say: managed objects) have no ID like known from other databases 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.

这篇关于哪些是最值得注意的事情,使核心数据不同于MySQL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆