Skip to content
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

Improve CVE download #15

Merged
merged 2 commits into from
Jun 11, 2024
Merged

Improve CVE download #15

merged 2 commits into from
Jun 11, 2024

Conversation

bjoernricks
Copy link
Contributor

What

Improve performance of CVE download

Why

Currently the CVE download is very slow (16 hours or even more for a full download of ~260k CVEs). This PR improves the performance by using bulk inserts for CVE configurations, nodes and matches. A full download is ~2 hours now.

By using UUIDs as IDs for the CVE configuration and node it is possible
to create the ID on the client side easily by using UUID4.
By using UUID4 as IDs for CVE configurations and nodes it is possible to
create them on the client side and use bulk inserts. Using bulk inserts
improves the insert performance drastically.
@bjoernricks bjoernricks requested a review from a team as a code owner June 11, 2024 14:07
@greenbonebot greenbonebot enabled auto-merge (rebase) June 11, 2024 14:07
Copy link

Conventional Commits Report

Type Number
Changed 2

🚀 Conventional commits found.

@greenbonebot greenbonebot merged commit 87e9271 into main Jun 11, 2024
11 checks passed
@greenbonebot greenbonebot deleted the improve-cve-download branch June 11, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants