From 78f2379222bf460e72266cdcca05249753f3955e Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Mon, 17 Feb 2025 11:35:21 +0100 Subject: [PATCH] Change: Set affected-products-query-size to 20000 The default value for the --affected-products-query-size option is increased to 20000. Tests have shown this to increase the speed of the affected products update while still keeping the memory/disk usage limited. --- doc/gvmd.8 | 2 +- doc/gvmd.8.xml | 2 +- doc/gvmd.html | 2 +- src/manage_sql_secinfo.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/gvmd.8 b/doc/gvmd.8 index 1e43c5afe..34ffb0dd9 100644 --- a/doc/gvmd.8 +++ b/doc/gvmd.8 @@ -14,7 +14,7 @@ It manages the storage of any vulnerability management configurations and of the Show help options. .TP \fB--affected-products-query-size=\fINUMBER\fB\f1 -Sets the number of CVEs to process per query when updating the affected products. Defaults to 1000. +Sets the number of CVEs to process per query when updating the affected products. Defaults to 20000. .TP \fB--auth-timeout=\fITIMEOUT\fB\f1 Sets the authentication timeout time for the cached authentication. Defaults to 15 minutes. diff --git a/doc/gvmd.8.xml b/doc/gvmd.8.xml index 2aec27b1e..39cf66714 100644 --- a/doc/gvmd.8.xml +++ b/doc/gvmd.8.xml @@ -57,7 +57,7 @@ along with this program. If not, see .

Sets the number of CVEs to process per query when updating - the affected products. Defaults to 1000. + the affected products. Defaults to 20000.

diff --git a/doc/gvmd.html b/doc/gvmd.html index de3040b76..b878bde10 100644 --- a/doc/gvmd.html +++ b/doc/gvmd.html @@ -40,7 +40,7 @@

Options

--affected-products-query-size=NUMBER

Sets the number of CVEs to process per query when updating - the affected products. Defaults to 1000.

+ the affected products. Defaults to 20000.

diff --git a/src/manage_sql_secinfo.h b/src/manage_sql_secinfo.h index a81d94629..3c20d19ce 100644 --- a/src/manage_sql_secinfo.h +++ b/src/manage_sql_secinfo.h @@ -168,7 +168,7 @@ /** * @brief Default for affected_products_query_size. */ -#define AFFECTED_PRODUCTS_QUERY_SIZE_DEFAULT 1000 +#define AFFECTED_PRODUCTS_QUERY_SIZE_DEFAULT 20000 /** * @brief Default for secinfo_copy.