本机iPhone数据库,iPhone上的所有数据 [英] native iPhone database, all data on iPhone

查看:345
本文介绍了本机iPhone数据库,iPhone上的所有数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能在iPhone上创建一个大型的50MB数据库吗?所以,它可以很快地以一种聪明的方式搜索?有了SQlite?

Is it possible to make a big 50MB database native on the iPhone? So that it can be searched very quickly in a smart way? With SQlite?

推荐答案

是的,你可以在iPhone上使用SQLite。由于数据库只是一个文件,您可以将50 MB文件添加到您的应用程序,就是这样。 SQLite在iPhone上的性能是好的,在我的经验,虽然YMMV取决于你的确切的表布局和索引。

Yes, you can use SQLite on the iPhone. Since the database is just a file, you can add the 50 MB file to your application, and that's it. SQLite's performance on the iPhone is good, in my experience, although YMMV depending on your exact table layout and indexes.

在我看来,它绝对值得检查FMDB包装建议由Galwegian;它使编程比直接使用SQLite库本身更容易一些。

In my opinion, it's definitely worth checking out the FMDB wrapper suggested by Galwegian; it makes the programming quite a bit easier than directly using SQLite library itself.

虽然50 MB是低于极限,请注意,50 MB应用程序将需要一些时间为人们下载,人们不能从没有WiFi连接或iTunes的AppStore安装它。

Although 50 MB is way below the limit, be aware that a 50 MB application will take some time to download for people, and people cannot install it from the AppStore without either a WiFi connection or iTunes.

这篇关于本机iPhone数据库,iPhone上的所有数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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