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

Update all the CPEs in a single statement (9.0) #879

Merged
merged 7 commits into from
Nov 26, 2019

Conversation

mattmundell
Copy link
Contributor

@mattmundell mattmundell commented Nov 26, 2019

This is for the base CPE update during the SCAP sync, which is adding all the CPEs from official-cpe-dictionary_v2.2.xml. Using a single big INSERT is faster than using an INSERT per CPE.

Note that this is different from the "batching" that was being done via increment_transaction_size, which was using an INSERT per CPE but splitting the INSERTS across multiple transactions.

The single big INSERT takes only a few seconds, so it should not affect responsiveness.

Checklist:

@mattmundell mattmundell marked this pull request as ready for review November 26, 2019 11:18
@mattmundell mattmundell merged commit e4ac4ff into greenbone:gvmd-9.0 Nov 26, 2019
@mattmundell mattmundell deleted the group-cpe-inserts branch November 26, 2019 20:41
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