Skip to content

Commit

Permalink
Change: Set affected-products-query-size to 20000
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
timopollmeier committed Feb 17, 2025
1 parent 123eac7 commit 78f2379
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/gvmd.8
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion doc/gvmd.8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<optdesc>
<p>
Sets the number of CVEs to process per query when updating
the affected products. Defaults to 1000.
the affected products. Defaults to 20000.
</p>
</optdesc>
</option>
Expand Down
2 changes: 1 addition & 1 deletion doc/gvmd.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h2>Options</h2>
<p><b>--affected-products-query-size=<em>NUMBER</em></b></p>

<p>Sets the number of CVEs to process per query when updating
the affected products. Defaults to 1000.</p>
the affected products. Defaults to 20000.</p>



Expand Down
2 changes: 1 addition & 1 deletion src/manage_sql_secinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 78f2379

Please sign in to comment.