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

The database index "idxVulnerability" on the column "vulnerability.cve" is redundant #6788

Closed
nikita-efremov1 opened this issue Jul 3, 2024 · 1 comment
Labels

Comments

@nikita-efremov1
Copy link
Contributor

nikita-efremov1 commented Jul 3, 2024

We have found two indices on the "vulnerability.cve" column in the postgreSql database:

  1. The first one is created automatically because of column uniqueness.
  2. The second one is created manually.

Since "cve" column is unique is doesn't make sense to create a separated index.
Sometimes it might lead to performance issues.
This is relevant at least for postgreSql, Oracle, mysql and mssql databases.

Screenshot 2024-07-02 at 13 58 34

@jeremylong
Copy link
Owner

good enough - the second index can be removed. We accept PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants