Skip to content

Make CVSS vector display faster by pre-calculating values#2167

Open
Aryan-SINGH-GIT wants to merge 1 commit intoaboutcode-org:mainfrom
Aryan-SINGH-GIT:parsing-severity-vectors-ui
Open

Make CVSS vector display faster by pre-calculating values#2167
Aryan-SINGH-GIT wants to merge 1 commit intoaboutcode-org:mainfrom
Aryan-SINGH-GIT:parsing-severity-vectors-ui

Conversation

@Aryan-SINGH-GIT
Copy link

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.

Signed-off-by: Aryan-SINGH-GIT <aryansingh12oct2005@gmail.com>
@Aryan-SINGH-GIT Aryan-SINGH-GIT force-pushed the parsing-severity-vectors-ui branch from acf2700 to bc7c228 Compare February 15, 2026 23:54
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.

1 participant