原料资源与SQLite数据库原料、数据库、资源、SQLite

2023-09-12 23:48:27 作者:森稚鹿笙三杯秋

我创建将使用大量的数据是,对所有意图和目的,静态的应用程序。我曾以为它会做出最合理使用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