Skip to content
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

Server Ratings (Upvote/Downvote) #14

Open
gamemann opened this issue Jul 17, 2024 · 1 comment
Open

Server Ratings (Upvote/Downvote) #14

gamemann opened this issue Jul 17, 2024 · 1 comment
Assignees

Comments

@gamemann
Copy link
Member

This issue will track progress on implementing server ratings (upvote/downvote).

@gamemann gamemann added this to the Ratings milestone Jul 17, 2024
@gamemann gamemann self-assigned this Jul 17, 2024
@gamemann gamemann added this to Roadmap Jul 18, 2024
@gamemann gamemann moved this to Todo in Roadmap Jul 18, 2024
@gamemann
Copy link
Member Author

I'd like to do something similar to one of my other projects, Best Mods.

Unfortunately, this will more than likely require transitioning to utilizing raw Prisma/PostgreSQL queries when retrieving servers from the server browser due to lack of support for certain features our implementation will require in Prisma. That said, sorting by server ratings in Best Mods at the moment is very expensive on large tables due to aggregation. I'd really like to find a better performing query, but I'm unsure what we can do without periodically updating the server rating in the servers table, which might be a solution to consider, but won't provide real-time ratings like Best Mods does it at the moment.

I don't believe caching PSQL queries will help in our case since we use cursor-based pagination and with how often the server table will update from Spy, the cache will change so often that caching becomes pretty useless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Do
Development

No branches or pull requests

1 participant