I just moved my server to unRAID and it seems to be incredibly slow compared to my old Ubuntu server. Is this normal?
Speaking from the ‘mainstream Linux’ perspective only, Did you optimize the database after the move? Moving large amounts of media & rebuilding the DB from scratch can slow it down (if you have a large library … especially music)
Music is exactly what’s running slow! I didn’t move the database though, just the files. Now I’m trying to rebuild the libraries but it’s taking forever compared to the old install.
Since you’re rebuilding the whole thing at once, do this for me… Whatever it’s scanning, interrupt it and then optimize the database (under the ellipsis next to Libraries) then resume your scanning. (give it 15 seconds to finish optimizing)
What is happening internal to the database is there are blocks of records (1 for each album) being created. Where the db gets ‘fragmented’ (just like a windows HD) is when different rows from different tables get interwoven. Following the SQLite3 internal links to each block of data (which it does for Plex) takes time. Yes, it gets painful. This is why Database optimization is run by the butler (scheduled tasks) so you don’t see this as you add media.
The best way to “Reload the world” is to Optimize the DB after you add each Library section.
What you end up with is all the data for that section in a contiguous block in the database and as fast as it should be.
I know this is an old post but I just wanted to Weigh in a let people know that this solution made a huge difference in the initial scan for me.