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

Remove page entries info from gems index page #2738

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

sonalkr132
Copy link
Member

@sonalkr132 sonalkr132 commented Jul 13, 2021

We are removing info like following from gem index page:

DISPLAYING GEMS 1 - 30 OF 11172 IN TOTAL

Showing count means we need to run a select count(*), which becomes
expensive (upwards of 400ms) if DB is already under load. The query is
already using index.
For past few days, we are receiving traffic for all of index pages
being scraped once a day. This is triggering CPU alerts on RDS.
Caching won't really help here unless we use an exceptionally large
expiry time. IMO, the above info doesn't add any significant value
and removing it should be fine.

We are removing info like following from gem index page:
> DISPLAYING GEMS 1 - 30 OF 11172 IN TOTAL

Showing count means we need to run a select count(*), which becomes
expensive (upwards of 400ms) if we are DB is already under load.
For past few days, we are receiving traffic for all of index pages
being scraped once a day. This is triggering CPU alerts on RDS.
Caching won't really help here unless we use an exceptionally large
expiry time. IMO, the above info doesn't add any significant value
and removing it should be fine.
@sonalkr132 sonalkr132 merged commit 9db6bb5 into rubygems:master Jul 14, 2021
@sonalkr132 sonalkr132 deleted the remove-gems-page-info branch July 14, 2021 02:50
@sonalkr132 sonalkr132 temporarily deployed to staging July 14, 2021 03:35 Inactive
@sonalkr132 sonalkr132 temporarily deployed to production July 14, 2021 03:38 Inactive
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.

1 participant