-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance improvements #232
Comments
Hey! I'm sorry you're having performance issues. The query you use as an example can't get much smaller. |
Yeah I can come back at some point this week with some better benchmark on what queries are taking long. I'm not too familiar with NoSQL but maybe there are some indexes (or equivalents?) that we could add to improve these checks? I'm still on version 4. I saw that it was upgraded to 6 in the past few days. I'll give it a try and see if magically fixes it hahaha |
Since upgrading is not officially documented, you should follow the comment at #223 (comment) |
Is this something that could be improved if we just treat the data as relational? And use a SQL database instead, like Postgres. |
I've upgraded to mongo 6 and it's still very slow when loading all data. It does run faster because I can't run mongo on my raspberry pi so I've moved to a better machine. I love this project and would love to help contribute whenever I get some time. Would moving away from NoSQL be something you'd be open to @Yooooomi? |
Hello. I'm glad mongo 6 is a bit more performant. |
Maybe indexes would work? It seems mongodb supports them: https://www.mongodb.com/docs/manual/indexes/ Would definitely be an easier option than shifting entire DBMSes |
I am already using indexes. If I was not queries would take several minutes instead of 5 seconds. I'll investigate a bit on the subject. |
I just upgraded to mongodb 6.0 and performance improved by a lot. After that I was able to upgrade the db with no issues to 6.0 |
Upgrade is done automatically, you didn't need to do the command with the last nightly. |
After a week running on mongo v6 I can confirm that there's some performance improvement. Mongo CPU usage is still really high and requires a good host to be able to load all time stats, but it's usable for now |
I'm currently utilizing a version that has undergone some significant modifications and is based on a previous release, which didn't update automatically. I tried it though! :D The performance has significantly improved after a week of testing. Currently, my "account" contains 173k songs out of a total of approximately half a million songs, and loading "All" on "All Stats" now only takes around 20 seconds, as compared to a couple of minutes previously. |
Also consider SQLite as an option. |
Hello, NB: all of this should be possible (certainly is) using a postgresql database, but boi I don't want to write those 200 lines queries. |
Hello, thank you so much for the project!
I'm running the server for me and a few friends. I've noticed that the performance when checking a large time period is not really amazing.
I did an extended history import with 144189 songs. 4 other friends did the same with the similar amounts on average. If I check my yearly stats it takes several seconds to even load the page while my machine is using 100% of its CPU. For all time it takes even longer than that, some times even more than a minute. I can see that this is the result of very long queries.
I've tried running it both on a raspberry pi 4 and on a Hetzner instance with similar results.
Queries like these are very slow to run:
I'll probably take a look into these issues myself at some point, but I'm not super comfortable with NoSQL databases so I'm not sure I'll get good results. Are there any plans from the maintainer to tackle these performance issues?
The text was updated successfully, but these errors were encountered: