vulnerablecode
vulnerablecode copied to clipboard
Make CVSS vector display faster by pre-calculating values
issue - #2054
The advisory and vulnerability pages were slow because they had to "decode" the raw CVSS string (like CVSS:3.1/AV:N...) every time someone visited the page.
I fixed this by parsing the string once when it's saved to the database and storing the result. Now, the page just reads the ready-to-use data instantly instead of calculating it on the fly.
This change includes:
- A new database field to store the parsed data.
- A script to update all existing records.
- Tests to make sure it works correctly.