Inefficient per-file metadata fetching causes incomplete scan in cloud storage libraries

App version

Production

Issue description

I’d like to report a performance issue when using cloud-based music libraries. The app scans music by opening each audio file to read metadata (tags) during library building. In my case, I am using an Android music player on Android 11, with a large library (2000+ tracks) accessed via Aliyun Drive official open API. This results in very slow scanning, request timeouts, and incomplete indexing (only 100–200 tracks detected out of 2000+). I believe the issue is caused by per-file metadata fetching over network storage. I suggest separating the scanning process into two stages: first, quickly indexing file paths without opening audio files, and second, asynchronously fetching metadata in the background. This would significantly improve performance and reliability for large cloud-based libraries.

Device type

Phone

Media provider

WebDAV

Steps to reproduce

  1. Connect the app to Aliyun Drive via official open API
  2. Add a large music folder (2000+ tracks) as the library source
  3. Start library scan / synchronization
  4. App begins scanning files and reading metadata (tags)
  5. After long processing time, only a small portion of tracks are indexed and scan becomes slow or incomplete

I searched existing issues first

on

I understand that logs are mandatory

on

Log upload name / description

Cloud music scan performance issue

There’s no logs uploaded …

Help,please!