iOS 上 SQLite 或 Core Data 数据库的最大大小是多少? [英] What is the maximum size of SQLite or Core Data database on iOS?

查看:30
本文介绍了iOS 上 SQLite 或 Core Data 数据库的最大大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iOS 上的 SQLite 或 Core Data 数据库的最大大小是多少,iOS 上的 SQLite/Core Data 数据库可以添加多少行?

What is the maximum size of SQLite or Core Data database on iOS, how many rows can be added to a sqlite/Core Data database on iOS?

推荐答案

SQLite 数据库的最大大小仅受可用磁盘空间的限制.

The max size of your SQLite database is only limited by free disk space.

一个 SQLite 数据库中的行数由 ROWID 类型定义,该类型是一个有符号的 64 位值.在最坏的情况下,一个托管对象需要在数据库中说 100 行来指定所有多对多关系,除了可用磁盘空间外,仍然没有限制.

The number of rows in one SQLite database is defined by the ROWID type that is a signed 64 bit value. In a worst case scenario where one managed object needs say 100 rows in the database to specify all many-to-many relations there would still be no limit except available disk space.

对两者的简短回答:仅受用户设备上可用磁盘空间的限制.

Short answer to both: only limited by free disk space on the users device.

这篇关于iOS 上 SQLite 或 Core Data 数据库的最大大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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