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

查看:577
本文介绍了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天全站免登陆