RoyaleAPI / cr-api-ux

User Experience and content issue tracker for RoyaleAPI website.
https://royaleapi.com
22 stars 16 forks source link

Ladder deck search results and deck ratings #564

Open watermeloen opened 3 years ago

watermeloen commented 3 years ago

I have done a ladder deck search in two different ways. One via my profile using the link above my level 13 cards, and the other one via deck search without card filters. Both searches where filtered to one day, ladder decks 5300-6600 ordered by rating. The top deck in the search with card filters is atm valk 3.0 cycle with a 52 rating. The first 3 decks in the other search have a 56, 52 and 51 rating, but the valk cycle deck is nowhere in that list. Shouldn't it be in the third position based on the rating?

These are the links:

https://royaleapi.com/decks/popular?time=1d&sort=rating&size=20&players=PvP&min_trophies=5300&max_trophies=6600&min_elixir=1&max_elixir=9&min_cycle_elixir=4&max_cycle_elixir=28&mode=detail&type=Ladder&&&global_exclude=false

https://royaleapi.com/decks/popular?time=1d&sort=rating&size=20&players=PvP&min_trophies=5300&max_trophies=6600&min_elixir=1&max_elixir=9&min_cycle_elixir=4&max_cycle_elixir=28&mode=detail&type=Ladder&inc=electro-spirit&inc=ice-spirit&inc=skeletons&inc=bomber&inc=bats&inc=giant-snowball&inc=spear-goblins&inc=zap&inc=cannon&inc=arrows&inc=archers&inc=minions&inc=skeleton-barrel&inc=firecracker&inc=knight&inc=goblin-gang&inc=mortar&inc=tesla&inc=barbarians&inc=rascals&inc=royal-giant&inc=royal-recruits&inc=ice-golem&inc=mega-minion&inc=earthquake&inc=dart-goblin&inc=bomb-tower&inc=mini-pekka&inc=zappies&inc=flying-machine&inc=musketeer&inc=valkyrie&inc=battle-ram&inc=furnace&inc=hog-rider&inc=goblin-cage&inc=fireball&inc=goblin-hut&inc=royal-hogs&inc=wizard&inc=giant&inc=rocket&inc=barbarian-barrel&inc=skeleton-army&inc=tornado&inc=goblin-barrel&inc=hunter&inc=baby-dragon&inc=poison&inc=dark-prince&inc=cannon-cart&inc=balloon&inc=prince&inc=lightning&inc=pekka&inc=golem&inc=the-log&inc=princess&inc=miner&inc=bandit&inc=night-witch&inc=electro-wizard&inc=mega-knight&&global_exclude=false

smlbiobot commented 2 years ago

As an fyi, our search results are cached for an hour — so having slightly different numbers are normal. Real-time custom searches are extremely expensive (system resources wise) and so if there’s a unique search (same _exact_parameter) then we cache the result for an hour.

Because the difference in an hour is very negligible.

So for searches that are popular, most likely you’ll be visiting a cached page already searched by someone else.

The custom search from your own profile on the other hand is very detail and with a ton of parameters. So it’s fairly unlikely that someone else has already searched for those things — end result is that the two results would be different.