aboutcode-org / aboutcode-org/purldb

Performance issue with api/collect endpoint

Đang mở
#618 7 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
HTML
Star
67
Fork
69
Merge trung bình
8 ngày 8 giờ
Pull request đã merge (30 ngày)
1

Mô tả

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?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.