简体   繁体   English

Phonegap android最好的存储来存储大数据

[英]Phonegap android best storage to store large data

I am Creating an application which need to store large amount of text data. 我正在创建一个需要存储大量文本数据的应用程序。 Which would be the best mechanism to store this? 哪个是存储它的最佳机制? From cordova documentation I understood that possible ways are - 从cordova文档中我了解到可能的方法是 -

  1. sqllite database sqllite数据库
  2. localstorage localStorage的

Please let me know if any other ways are available. 如果有其他方法,请告诉我。 And which will be best for my app. 哪个最适合我的应用。

As you said cordova provide storage mechanisms here 正如你所说,cordova 在这里提供存储机制

But I don't know how much effective it would be for you as you need to store large amount of text data. 但是我不知道你需要存储大量的文本数据会对你有多大的帮助。 Depends upon your data size. 取决于您的数据大小。

Another better option i can suggest is using File API you can read/write into text files using this. 我建议的另一个更好的选择是使用File API,你可以使用它读/写文本文件。 Hope this will helpful. 希望这会有所帮助。

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

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