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

Site timeout #802

Open
benmccann opened this issue Jun 27, 2024 · 2 comments
Open

Site timeout #802

benmccann opened this issue Jun 27, 2024 · 2 comments
Labels
bug Something isn't working performance

Comments

@benmccann
Copy link

Thank you sooo much for this service! We've been using it to remove unnecessary dependencies and have already removed billions of monthly downloads from the npm registry

I'd like to find more usages of this package, but the page is timing out:
https://packages.ecosyste.ms/registries/npmjs.org/packages/rimraf/dependent_packages?kind=runtime&latest=true&order=desc&sort=downloads

@andrew
Copy link
Member

andrew commented Jun 27, 2024

I’ll take a look tomorrow, I suspect it’s missing a db index on the kind filter counting.

In the meantime you can use the api end point, which loads faster: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/rimraf/dependent_packages?kind=runtime&latest=true&order=desc&sort=downloads

@andrew
Copy link
Member

andrew commented Jun 28, 2024

It's definitely related to the kind query as https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/rimraf/dependent_package_kinds?latest=true times at as well.

Need to optimze the query and add some caching in (the counts don't change that regularly)

@andrew andrew added bug Something isn't working performance labels Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working performance
Projects
None yet
Development

No branches or pull requests

2 participants