You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This endpoint is significantly slower than a lot of others, due to doing large database queries. It takes multiple seconds on production, and makes graphing hard since I don't want to downgrade performance. Caching this endpoint in redis would improve the response times, and reduce DDoS risk. An alternative approach would be to keep count in-memory, then increase this number when X happens. This is even more performant, but less reliable.
The text was updated successfully, but these errors were encountered:
I had an open PR on the labrinth repo for this, however I have decided to not re-create it in the monorepo. This is primarily because the code was too repetitive, and I think there's likely a better way to do it. I still think it's a valid issue however.
This endpoint is significantly slower than a lot of others, due to doing large database queries. It takes multiple seconds on production, and makes graphing hard since I don't want to downgrade performance. Caching this endpoint in redis would improve the response times, and reduce DDoS risk. An alternative approach would be to keep count in-memory, then increase this number when X happens. This is even more performant, but less reliable.
The text was updated successfully, but these errors were encountered: