Comment on Improve very slow library scans on Jellyfin 10.11 / 12 on spinning media

<- View Parent
zr0@lemmy.dbzer0.com ⁨1⁩ ⁨day⁩ ago

I just checked the code and unfortunately, they do not support loading the SQLite file into memory yet. Even worse, the change would be substantially. It appears they currently abuse the database connection a bit. They basically create a new connection for each operation. This does not matter if you can read/write in parallel, but that’s only the case with NVMe and certain drivers. So all SATA (SSD and HDD) suffer from the current mechanic. So just loading it into memory is not going to solve the issue. Jellyfin needs to change architecturally, so that a database connection is reused. I don’t know why or who implemented the current logic, but it is clearly done by someone not understanding how databases work.

Depending on the mood and time, I will come up with a solution that is solid. For now, you are stuck with the current logic.

original
Sort:hotnewtop