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

Drop table nvt_cves #574

Merged
merged 4 commits into from
Jun 5, 2019
Merged

Conversation

janowagner
Copy link
Member

Assuming we have the new table vt_refs as proposed in
#570
we do not need the table "nvt_cves" anymore.

This PR removes the table and takes care vt_refs is used to achieve the same.
Therefore the above cited PR is mandatory before applying this PR. No conflict for compile time, but at run-time it would fail with SQL errors.

The PR does not include a migrator to remove existing tables. This should be subject to another
PR.

@janowagner janowagner requested a review from a team May 29, 2019 16:11
Copy link
Contributor

@mattmundell mattmundell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. nvt_cves was added for speed, so something to keep an eye on.

Could you add a migrator to remove nvt_cves too?

For building the relationship between dfn-cert and cert-bund to
nvts via CVE's, the special table nvt_cves was used.
Now that we have vt_refs that includes the information needed
from nvt_cves, use vt_refs directly.
This is one step towards removing the redundant table nvt_cves.
This removes the function refresh_nvt_cves() and any call of it.
Since refeshed table isn't used anymore, the refreshing does not
need to be done as well.
Since we do not need this table anymore, do not even
create it at start time. Also do not create an index for it.
@janowagner
Copy link
Member Author

Looks good. nvt_cves was added for speed, so something to keep an eye on.

The new vt_refs table should be pretty fast as well. But yes, we keep an eye on it.

Could you add a migrator to remove nvt_cves too?

Done

@mattmundell mattmundell merged commit ee8210d into greenbone:master Jun 5, 2019
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.

2 participants