Closed trap000d closed 1 year ago
Tired of postgres bugs - switched to sqlite backend. Haven't spotted any performance issues.
Sorry I take too long to fix this. I started working on it but didn't had time to finish it. This is, as you found out, an issue with Postgres being picky about the syntax of some queries. It affects at least the getAlbumList
and getAlbumList2
endpoints.
Even if it is advertised as supported, I would advise against SQLite unless you have a single-user installation (and even then it can have issues). As this is an embedded database it doesn't properly handle connections from different processes, and as you are running multiple workers you might run into issues if at least two of them try to access the database at the same time. The problem also exists between the web app and the daemon.
No worries. Although I prefer postgres over other db's (including mysql/mariadb), sqlite seems does the work. If/when this issue is fixed, I immediately switch back to postgres.
I had a look at SQL queries, but with a little knowledge of internal structures I simply have no idea of what data and in what format should be in output, and how to build all these queries through Python classes and objects.
As for sqlite multi-process, indeed, that was a real issue decade ago, but now it is thread-safe (at least they said it officially): https://www.sqlite.org/threadsafe.html
Hi there, I've caught another issue. I'm getting random HTTP 500 errors when connect to it. Quick look at supysonic-server logs hasn't shown anything meaningful.
Hint: I've managed to 100% reproduce the bug. Postgres crashes if select "Recently Added" in any client app (either Jamstash or DSub)
After searching through postgresql logs I've spotted some complains about syntax error (happened a day before!).
After that all further transactions are getting aborted.
Regards,
UPD: Just found a relevant log record.