-
I have noticed that the time to sync my music library with Music Assistant is abnormally long when compared with other music servers. I have tried switching off the fetching of metadata and images from other external sources, but it is still very slow. For example, when syncing from Gonic, it takes in excess of 8 hours to fully sync. For comparison, sync from Gonic to Symfonium takes a whopping 1 minute. Does Music Assistant have a wait 1s between adding tracks command hiding somewhere? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
Yes, I write all my code this way, don't you? Seriously, I'm not sure what kind of question this is. Please provide some details around how this is running. What hardware is MA running on, how big is the Gonic library? What is the internet connectivity of the MA instance? For comparison, I am using a mid-tier i5 based NUC with HAOS with supposed gigabit down stream (it's comcast so more like 400-600mbps) and I have a modest library (~12k tracks on ~1200 albums from 1100 artists) and my sync takes about 15 minutes initially and a few seconds after that. |
Beta Was this translation helpful? Give feedback.
-
I tried again on my Home Assistant server, which happens to have an SSD. Much faster sync. About 40 minutes for 24k tracks. I think that the issue is coming from high disk IO during the sync. The DS920+ has slow HDDs, and Music Assistant is making lots of small transactions with the Sqlite database. So I will change my question to: Has anyone else experienced very slow sync when MA's database is stored on an HDD? |
Beta Was this translation helpful? Give feedback.
I read the WAL documentation and I don't think it fits our use case. Fundamentally, MA is a read heavy work load, except for the initial sync and the key part of enabling WAL is ensuring frequent enough checkpoints that read performance is not impacted. This would require a full understanding of the IO interactions with the DB and then to redesign that around checkpoints. I don't think it is impossible but I don't have the time to take it on.