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

Accelerate VT feed update #757

Merged
merged 11 commits into from
Sep 30, 2019

Conversation

janowagner
Copy link
Member

@janowagner janowagner commented Sep 25, 2019

Instead of a SQL query based on a copy of the nvts table, directly count
the new and modified VTs as they are loaded via OSP.
Use these values to determine about issuing events.

This reduces the update times from about 7 minutes to a few seconds.

Checklist:

@janowagner janowagner changed the title Accelerate feed update Accelerate VT feed update Sep 25, 2019
@janowagner janowagner marked this pull request as ready for review September 25, 2019 20:16
@janowagner janowagner added the work in progress This pull request should not be merged yet, more commits are expected label Sep 25, 2019
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.

Nice patch!

src/manage_sql_nvts.c Outdated Show resolved Hide resolved
src/manage_sql_nvts.c Outdated Show resolved Hide resolved
And use them to issue the events that actually are called
via  check_for_updated_nvts() and check_for_new_nvts().

This way the SQL statements from those two functions are not
executed anymore. This accelerates a update by about 7 minutes
down to a few seconds.
check_for_new_nvts() and check_for_updated_nvts() are
moved now.
@janowagner janowagner force-pushed the accelerate_feed_update branch from 75c384a to dc77e67 Compare September 26, 2019 20:59
@janowagner janowagner removed the work in progress This pull request should not be merged yet, more commits are expected label Sep 26, 2019
@mattmundell mattmundell merged commit dd25d05 into greenbone:master Sep 30, 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