developer-relations icon indicating copy to clipboard operation
developer-relations copied to clipboard

[FEATURE-REQUEST] Search VALORANT Leaderboard by PUUID

Open raimannma opened this issue 1 year ago • 0 comments

Problem Description

Currently we can only retrieve the leaderboards by pagination, we can only query 200 players in one step and a leaderboard can have up to 15k players, so we would need 75 queries to retrieve the full leaderboard for a single region. But most of us only need the position of a single player, and 75 queries for that is too slow and inefficient. That's why we cache the rankings 24/7 for all regions and all players. This leads to an unnecessary load on our side and yours.

I would love to use a query arg to filter the leaderboard according to a specific puuid.

Developer Impact

Cost: Requires me to run an extra background ticker to refresh my leaderboard cache. Efficiency: Requires me to iterate over every leaderboard in every region, which is horribly inefficient.

Issue Comments

I don't know what the structures in your backend look like, but if it is possible for you to filter the rankings by a puuid, it would be handy if we developers could do the same. This would significantly reduce the number of requests to the leaderboard and save us and you time and money.

raimannma avatar May 22 '24 19:05 raimannma