XML资源或源码 [英] xml resources or sqlite

查看:176
本文介绍了XML资源或源码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提出,将使用数据库的Andr​​oid应用程序。用户将不能够编辑数据库,该数据库将是静态的大部分时间,但我会需要经常更新数据库为将来的版本。它将只包含1表中,但与数百或甚至数千的数据。
哪一个我应该使用这样,这将是高效和有效的内存明智? XML或SQLite的?
任何帮助将是非常美联社preciated。

i am making an android application that will use a database. the user won't be able to edit the database, the database will be static most of the times, but i will need to update the database frequently for future releases. It will only contain 1 table but with hundreds or even thousands data. Which one should i use so that it will be efficient and effective memory-wise ? XML or SQLite ? Any help will be very appreciated.

P.S。我已阅读原始资源vs SQLite数据库但我决定做一个新的问题,而不是回答一个老问题。

P.S. I have read Raw resources versus SQLite database but i decide to make a new question rather than replying to an old question.

推荐答案

去sqlite的始终,文件处理比sqlite的昂贵。并且也SQLite的会比XML的更安全。您尝试的东西,我已经走了这类问题。在那里,我开始与文件,但在一个时间点,文件IO正在作出巨大的,因为数据处理我的应用程序很慢。为了克服这个问题我使用SQLite的。其结果是,我的应用程序变得越来越快10倍!

Go for Sqlite always , File Processing is Costlier than Sqlite. And also Sqlite will be more secure than XML. The Thing that you are trying , I had been gone these kind of issues. There I started with File but at one point of time , FILE IO was making my app very slow because of huge data processing. to Overcome that Issues I used Sqlite. As a result , My app became 10 times faster !

这篇关于XML资源或源码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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