Sqlite is a great bit of technology but sometimes I read articles like this and think, maybe they should have used postgres. I you don’t specifically need the “one file portability” aspect of sqlite, or its not embedded (in which case you shouldn’t have concurrency issues), Postgres is easy to get running and solves these problems.
abound|4 months ago
tombert|4 months ago
This is something that I think I could fairly easily ameliorate if I could simply load-balance the application server by user, but historically (with Emby), I've not been able to do that due to SQLite locking not allowing me to run multiple instances pointing to the same config instance.
There's almost certainly ways to do this correctly with SQLite but if they allowed for using almost literally any other database this would be a total non-issue.
ETA:
For clarification if anyone is reading this, all this media LEGALLY OBTAINED with PERMISSION FROM THE COPYRIGHT HOLDER(S).
reddalo|4 months ago
>[...] it also opens up new possibilities - not officially yet, but soon - for running Jellyfin backed by "real" database systems like PostgreSQL, providing new options for redundancy, load-balancing, and easier maintenance and administration. The future looks very bright!
https://jellyfin.org/posts/jellyfin-release-10.11.0/
npodbielski|3 months ago
morshu9001|4 months ago
petters|4 months ago
nick_|4 months ago
thayne|4 months ago
throwaway894345|4 months ago
amaccuish|4 months ago
o11c|4 months ago
You probably need to support this for your testsuite anyway.
hamandcheese|4 months ago
heavyset_go|3 months ago
I already had to do that for my authoritative PG deployment, and my media manager shouldn't require a full RDBMS.
Using SQLite for Jellyfin has made running it wherever really, really easy, same thing with doing backups and lazy black box debugging.
andersmurphy|3 months ago
I think the author od this article missed sqlite_busy.
Once you do have it set up correctly, are handling a single writer at the application level and have litestream set up your off to the races assuming your app can scale on a single box (it most likely can).
zeroq|4 months ago
It's like saying "oh, you want to visit Austrian country side next month and you're asking for advice for best tent? How about you build a cabin instead?".
bambax|4 months ago
throwaway894345|4 months ago
Jellyfin is by far the least reliable application I run, but it also seems to be best in class.
apitman|3 months ago
KingMob|4 months ago
Emby has a scarily-ancient install process, but it's been working just fine with less hassle.
ants_everywhere|4 months ago
A stateless design where a stateless jellyfin server talks to a postgres database would be simpler and more robust.
eduction|4 months ago
I certainly don’t mind if someone is pushing the limits of what SQLite is designed for but personally I’d just rather invest the (rather small) overhead of setting up a db server if I need a lot of concurrency.