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

countries sorted by cases for api get all countries #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dicksenz
Copy link

No description provided.

@javieraviles
Copy link
Owner

Hi! First of all thanks!

The problem I see here is, it is sorting every single time there is a request (300 requests/second are reaching the host at the moment). What if we do the sorting right before saving it to db? that we will already be sorted when fetching it and only happens once every 3 minutes...

@Dicksenz
Copy link
Author

Thats a good idea should be fine.

@Dicksenz
Copy link
Author

Dicksenz commented Mar 28, 2020

The web scraping part i don't know . You used cheerio manipulating the data? The table there is already sorted i think.

@javieraviles
Copy link
Owner

Seems like the only one out of place is china isnt it? maybe we should just investigate why

@Dicksenz
Copy link
Author

Yes can you sort before insert to db?

@Dicksenz
Copy link
Author

I think we should sort in the api get itself

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

Successfully merging this pull request may close these issues.

2 participants