API Calls Take Too LONG

Sort:
Avatar of Naughtious-maximus

Hello everyone,
I started making my first ever project with chess.com's public API and for one of my project's features, I have to request the API for every game a user has played, Im using python and even after trying to optimize my code and multi-threading. Max efficiency I get it 90 seconds for a profile with 800 games

How do you guys solve this problem and make your websites or projects so fast with fetching all user data in under 10 to 15 seconds, is it possible for my project?
I'd love to get some advice from you guys, Thank you

Avatar of Martin_Stahl

You’re going to be limited by the site’s servers and how spread out the archives you’re looking through.

Avatar of Nitya_XGAMER

Same

Avatar of Nitya_XGAMER

Just not chess.com ches kid

Avatar of GM_Salzi

Why do you need to request every game seperately? All information i ever needed stands in the montly archive.

Avatar of Christopher_Parsons

My understanding is that it has data limits and if the player is a long-standing member with many, many games, it may well be rife with problems trying to call them all. Try a smaller set and see if it works. If you try calling a few hundred games and the same problem arises, something else is going on.

Avatar of tarun4279

@Nautiyus maximus and @Nitya Gamer.
For profile, i guess you would need to fetch profiles only. For games i think one should fetch it separately and with pagination. Also in case they are clubbed, there should be some query param to get limited games only, otherwise its an issue on chess com side.
Update your design. Also feel free to share the API here I would take a look.

Avatar of Nitya_XGAMER

Ok