List of artifacts with with_sbom_overview=true is slow
After https://github.com/goharbor/harbor/pull/18610 it looks like queries for artifacts with with_scan_overview=true are very fast.
However when with_sbom_overview=true is used in repositories with multi-arch artifacts (with or without with_scan_overview=true), the API call is really slow.
This for a repository with both linux/arm64 and linux/amd64 artifacts and the oci manifests
- scan=true & sbom=false <1s
- scan=true & sbom=true >20s
These are for a repository with the same tags but only linux/amd64
- scan=true & sbom=false <1s
- scan=true & sbom=true <1s
I get this numbers with the curl or in the UI for the following url:
https://example.com/api/v2.0/projects/<a project>/repositories/<a repo>/artifacts?with_tag=false&with_scan_overview=true&with_sbom_overview=true&with_label=false&with_accessory=false&page_size=50&page=1
The testing repository is for:
image: rancher/hyperkube
tags: 17
- harbor version: 2.12.0
Source: goharbor/harbor