-
-
Notifications
You must be signed in to change notification settings - Fork 474
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
Performance issue with package details endpoint #1502
Comments
Those |
this package specifically has a huge file here, because it has tons of conflicts while also having 470 branches included in this file (and the composer-specific minification does not help a lot, because those conflict rules are changing between versions, and the branches don't even have name that sort them in a relevant order minimizing back and forth changes) |
First of all, thanks for the quick answer @stof. What about having a filter to exclude certain properties from the response? |
@p-brito those Packagist currently knows a bit more than 415K packages, which represents 830K metadata files (each package has one file for branches, for which the cache is invalidated at each commit but that composer does not need to load by default, and one file for tags, for which the cache gets invalidated only when a release is done). And Packagist has lots of traffic to those files.
Looking at the repo, it seems all those UUID-based versions are not even relevant: they correspond to PRs opened by the bot to add new vulnerabilities in the main branch. There is a few ways in which @LeTraceurSnork could improve the situation here:
|
Aw, snap, I'm sorry. Will try to fix that this week. Thank you for your feedback btw 😊 |
While attempting to retrieve details for this package (https://repo.packagist.org/p2/letraceursnork/wordpress-security-advisories~dev.json), I encountered significant performance issues due to the sheer volume of conflict data. The last successful request I managed to execute returned a response exceeding 5 million lines, making the request nearly impossible to complete efficiently. To improve accessibility and performance, I suggest removing conflict information from the main endpoint and introducing a dedicated endpoint specifically for fetching this data.
The text was updated successfully, but these errors were encountered: