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

Improve SQL used to get NVT refs #793

Merged
merged 7 commits into from
Oct 15, 2019

Conversation

mattmundell
Copy link
Contributor

@mattmundell mattmundell commented Oct 14, 2019

This reduces the number of columns used in the NVT SecInfo ref iterators.

For GET_REPORTS with a basic report of 5000 results this drops the total
time of these iterator queries from about 320ms to about 50ms.

As a side effect the iterator no longer calls iso_time, which saves an extra
71ms in subqueries that were made by the iso_time SQL function.

That's very roughly 340ms saved out of 1168ms, or 29%.

Checklist:

@mattmundell mattmundell marked this pull request as ready for review October 14, 2019 12:24
@timopollmeier timopollmeier merged commit 4d58198 into greenbone:master Oct 15, 2019
@mattmundell mattmundell deleted the simpler-secinfo-iterators branch October 15, 2019 14:25
@mattmundell mattmundell mentioned this pull request Oct 17, 2019
2 tasks
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