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

Unnecessary Requests? #1

Open
davidbiller opened this issue May 27, 2019 · 2 comments
Open

Unnecessary Requests? #1

davidbiller opened this issue May 27, 2019 · 2 comments

Comments

@davidbiller
Copy link

You ask for the pictures.
Then you filter in the frontend if the user is in the flag array.
You don't want to load 80.000 images at the same time. Then you probably work with the nextToken.
What do you do now, if an array with 50 items is returned in the request, but all are blocked? Then the request was unnecessary. And you have to place another one and hope that in the next 50 there will be some that haven't been blocked yet.

How better to solve this?

@youneshenniwrites
Copy link
Owner

Thanks for the feedback. I really need to get back to this project and refactor the code to be more efficient.

@davidbiller
Copy link
Author

Thanks for the feedback. I really need to get back to this project and refactor the code to be more efficient.

Did you find a good way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants