purldb
purldb copied to clipboard
Performance issue with api/collect endpoint
Cross-posting from here for visibility, querying https://public.purldb.io/api/collect/?purl=pkg:npm/[email protected] takes close to 30s (for getting a 4k JSON response):
$ time curl https://public.purldb.io/api/collect/?purl=pkg:npm/[email protected]
...
real 0m27.074s
user 0m0.020s
sys 0m0.018s
which seems to be extremely slow. For our use-case to speed up ORT scans by retrieving existing scan results for packages, this is problematic.
Is this kind of performance expected? Is there any way to speed things up?
@sschuberth Thanks for the report and sorry for the late reply. Let me make sure we look into it.
Any update here @pombredanne? We were talking about this in the OCCTET WP3 meeting with @heurtematte.