I was thinking how we can import data a bit faster, atleast the one's which are based on a git clone. Like we can get the commit hash of the clone that we are doing, and only import the delta of advisories between last clone and current clone ?
last_imported_commit ---> new_commit
git diff --name-status last_imported_commit new_commit
A advisories/CVE-2026-1111.yaml
M advisories/CVE-2025-9999.yaml
D advisories/CVE-2024-1234.yaml
Then:
import new advisory
update changed advisory
I was thinking how we can import data a bit faster, atleast the one's which are based on a git clone. Like we can get the commit hash of the clone that we are doing, and only import the delta of advisories between last clone and current clone ?
last_imported_commit ---> new_commit
git diff --name-status last_imported_commit new_commit
A advisories/CVE-2026-1111.yaml
M advisories/CVE-2025-9999.yaml
D advisories/CVE-2024-1234.yaml
Then:
import new advisory
update changed advisory