简体   繁体   English

SQLite可以处理大量数据

[英]Can SQLite handle large amount of data

I will be making a mobile application in Android. 我将在Android中制作移动应用程序。 My application is like Google Map's Get Direction feature, but a lot more complex, so I need to store data about points in the map. 我的应用程序就像谷歌地图的获取方向功能,但更复杂,所以我需要存储有关地图中点的数据。 So I'm worried that SQLite may not be able to handle these large amount of data(or considering the limited storage of the phone). 所以我担心SQLite可能无法处理这些大量数据(或者考虑到手机的有限存储空间)。 I have no background in SQLite so please bear with me. 我没有SQLite的背景所以请耐心等待。

SQLite can handle large amount of data, the problem here is the device's limits. SQLite可以处理大量数据,这里的问题是设备的限制。 If you are going to store 3MB or more you should consider saving that data in an external server and access it via the Internet. 如果要存储3MB或更多,则应考虑将该数据保存在外部服务器中并通过Internet访问。 In fact, when you are building an application that use large amount of data, usually the application don't use all data all the time, so you can save in cache (in a local database) the data that the app is currently using or is about to use. 实际上,当您构建使用大量数据的应用程序时,通常应用程序不会一直使用所有数据,因此您可以在缓存(在本地数据库中)保存应用程序当前使用的数据或即将使用。

我已经阅读了本手册的这一部分 ,还有这部分

I think the best way to find out is to write a simple app that simulates the types of transactions you'll be doing and see how it does. 我认为最好的方法是编写一个简单的应用程序,模拟您将要进行的事务类型并查看它是如何工作的。

You might also want to compare how SQLite does to an object database like db4o , which is very performant and used very often as an embedded database (and can easily handle gigs of data). 您可能还想比较SQLite对像db4o这样的对象数据库的作用,它非常高效并且经常用作嵌入式数据库(并且可以轻松处理数据集)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM