java - 有没有更好的替代方法来代替 SharedPreferences 来保存/缓存大量数据而无需在线访问?
问题描述
在没有在线连接的情况下,移动内存中大量数据存储的最佳实现是什么?因为共享偏好可能会下降......
解决方案
您可以在移动设备上将大量数据存储在SQLite、RealM、Room DB 等本地数据库中。
对于参考,您可以点击以下链接:
1. SQLite: https ://www.tutorialspoint.com/android/android_sqlite_database.htm
3.房间数据库: https ://medium.com/@tonia.tkachuk/android-app-example-using-room-database-63f7091e69af
推荐阅读
- python-3.x - 如何根据 Bing Ads API 中的指标进行过滤?
- javascript - Laravel Echo 不监听公共频道事件?
- python - pandas 堆积条形图 - 改变堆积条的边缘颜色
- python - 如何在不编辑字典本身的情况下提取和编辑字典值?
- postgresql - 如何通过从 Jasper 软件工作室的当前日期和旧日期中减去来获得网络天数?
- javascript - 如何在 JavaScript 中部分等待嵌套的 Promise?
- node.js - Foreach 字符串数组,每个都是 upsert 并递增到 1,但在特定字段上保存 2
- swift - 从 JSON 创建日期数组
- r - 对于每个唯一的用户 id,创建一个直方图频率向量 R
- jmeter - 是否可以在不同的时间间隔运行线程-JMeter