在Android的SQLite数据库的限制 [英] SQLite database limits in Android

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

问题描述

我打算Android的应用程序,它广泛地使用本地数据库。数据库将包含约15桌,正确归(FK,PK等)。 4主表将有多达1000个条目,并与文字,日期/时间和只有数字约15列。

I'm planning Android app which extensively uses local DB. DB would contain approx 15 tables , properly normalized (FK, PK etc). 4 Main tables would have up to 1000 entries and about 15 columns with text, date/time and numbers only.

我想知道这个配置是否在Android手机/平板电脑是可行的。 难道我推源码和Android操作系统的限制? 我找不到关于Android操作系统源码限制任何确实的数字。

I wondering whether this configuration is feasible on Android phone/tablet. Am I pushing sqlite and Android OS to the limits? I cant find any firm figures about sqlite limitations on Android OS.

感谢

推荐答案

我compelety同意 @ Amokrane的答案,但保证你的数据库也应该有落后的密实性。因为你说你的数据库是正确的标准化(FK,PK等)。在这里,外键支持仅因为的SQLite版本3.6.19 因此,这种约束可能只适用于的Andr​​oid 2.2 Froyo (具有的SQLite 3.6.22版)及以上版本。

I compelety agree with @Amokrane's answer but insure that your database should also have backward compactibility. Because you are saying that your database is properly normalized (FK , PK etc). And here Foreign Key support is only available since the SQLite version 3.6.19 therefore this constraint could only be applicable on the Android 2.2 FroYo (which has SQLite 3.6.22 Version) and the above versions.

有关详细信息,请参阅: http://www.sqlite.org/foreignkeys.html

For more information refer : http://www.sqlite.org/foreignkeys.html

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

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