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

Get refs in the NVT SQL when updating nvti_cache #826

Merged
merged 4 commits into from
Oct 25, 2019

Conversation

mattmundell
Copy link
Contributor

@mattmundell mattmundell commented Oct 23, 2019

This improves the gvmd startup time by about 10s. Previously we ran a separate SQL statement for each NVT, to retrieve the refs.

Slow gvmd startup time really frustrates me during development.

I printed and diffed nvti_cache to confirm that it was the same before and after the patch.

Checklist:

This is about a 10s improvement on gvmd startup time.  Previously we ran
a separate SQL statement for each NVT, to retrieve the refs.
Copy link
Member

@timopollmeier timopollmeier left a comment

Choose a reason for hiding this comment

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

The changes look good overall but there's a comment that may be a bit confusing later without the context of this PR.

src/manage_sql.c Show resolved Hide resolved
@timopollmeier timopollmeier merged commit 4e1699a into greenbone:master Oct 25, 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