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

Improve loading time for usernames with large amounts of pics #5

Open
rene78 opened this issue Oct 19, 2020 · 0 comments
Open

Improve loading time for usernames with large amounts of pics #5

rene78 opened this issue Oct 19, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rene78
Copy link
Owner

rene78 commented Oct 19, 2020

Currently the 2 API calls are asynchronous: First all images from a user are downloaded in batches of 500 pics/request. This means the web app needs to make 44 API calls for a username with 22000 pictures (22000/500). Once all images are downloaded the whole array with image ID's is split into batches of 50 id's, which are used in the second API call to get the global usage of each picture (22000/50=440 calls).

Instead of doing one API call after the other they should be fired synchronously.

Possible challenge: Race conditions.

@rene78 rene78 added the enhancement New feature or request label Oct 19, 2020
@rene78 rene78 self-assigned this Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant