aboutcode-org / aboutcode-org/purldb

Performance issue with api/collect endpoint

Aperta
#618 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
HTML
Stelle
67
Fork
69
Merge medio
8g 8h
PR unite (30g)
1

Descrizione

Cross-posting from [here](https://github.com/oss-review-toolkit/ort/issues/10258#issuecomment-2862846296) for visibility, querying https://public.purldb.io/api/collect/?purl=pkg:npm/asdf@1.0.2 takes close to 30s (for getting a 4k JSON response):

```
$ time curl https://public.purldb.io/api/collect/?purl=pkg:npm/asdf@1.0.2
...
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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.