原料资源与SQLite数据库 [英] Raw resources versus SQLite database

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

问题描述

我创建将使用大量的数据是,对所有意图和目的,静态的应用程序。我曾以为它会做出最合理使用SQLite数据库来处理数据。我不知道是否是有意义的只是使用XML文件(S),然后访问它作为原始资源。请记住,还有的可能会是数据很多,数百个独立的部分的顺序。

I'm creating an application that will use a lot of data which is, for all intents and purposes, static. I had assumed it'd make most sense to use a SQLite database to handle that data. I'm wondering if it makes sense to just use an XML file(s) and then access it as a raw resource. Bear in mind that there's likely going to be a LOT of data, to the order of hundreds of separate pieces.

我是正确假设SQLite是最好的,无论是在存储器管理和整体设计的考虑或根本SQLite的没有意义来讲如果数据是基本上静止?

Am I right to assume SQLite is best, both in terms of memory management and overall design considerations or does SQLite not make sense if the data is basically static?

推荐答案

其实,SQLite的似乎是废话,如果数据是静态的。但是,如果你要处理的是大量的数据,你应该使用它:

In fact, SQLite seems to be nonsense if the data is static. However, if what you are going to manipulate is a lot of data you should use it:

  • 这将是更容易:
    • 检索数据
    • 筛选数据
    • 排序数据
    • It will be easier to:
      • Retrieve data
      • Filter data
      • Sort data

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

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