We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
现状 目前使用了Job Service监听media store变化, 当变化时会触发全量查询,扫描出所有的Media,Album,Artist,Genre后, 把本地数据库中的相关表清空, 再全部插入。
缺点
这样的做法会导致当数据量很大时, 全量查询很耗时。
还有当本地文件有些微少量变更时, 对本地数据库做全量删除, 全量插入, 操作比较重。
The text was updated successfully, but these errors were encountered:
#225
Sorry, something went wrong.
No branches or pull requests
现状
目前使用了Job Service监听media store变化, 当变化时会触发全量查询,扫描出所有的Media,Album,Artist,Genre后, 把本地数据库中的相关表清空, 再全部插入。
缺点
这样的做法会导致当数据量很大时, 全量查询很耗时。
还有当本地文件有些微少量变更时, 对本地数据库做全量删除, 全量插入, 操作比较重。
参考:
https://android.googlesource.com/platform/development/+/master/samples/ApiDemos/src/com/example/android/apis/content/PhotosContentJob.java
The text was updated successfully, but these errors were encountered: