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

Speed up nvt_preference_count #2009

Merged
merged 8 commits into from
Jul 4, 2023

Conversation

mattmundell
Copy link
Contributor

What

Add more detailed columns to nvt_preferences, and use them to do an equal comparison instead of a LIKE in nvt_preference_count.

time o m m '<get_nvts details="1" timeout="1" family="Databases" preferences_config_id="55385e2f-cd85-4a4a-954a-c89495aca669" preference_count="1" sort_field="nvts.name" sort_order="ascending"/>' > /tmp/nvts

Before PR: 5s
After PR: 3.1s

Why

The GSA Edit Config Family dialog is slow. This saves a couple seconds.

References

Similar to /pull/1980

@mattmundell mattmundell marked this pull request as ready for review June 26, 2023 12:31
@mattmundell mattmundell requested a review from a team as a code owner June 26, 2023 12:31
@timopollmeier timopollmeier merged commit 5e1f2c4 into greenbone:main Jul 4, 2023
8 of 9 checks passed
@mattmundell mattmundell deleted the faster-get-nvt-family branch July 4, 2023 12:43
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