-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Speed up CVE affected products update
When the affected products of CVEs are updated as part of the SCAP data update, all newly added placeholder CPEs are now added to the hashtable that is used to look up their row ids. This avoids having to look up CPE row ids via SQL when inserting entries into the affected_products table. Also, to filter out duplicate product references, a hashmap is now used instead of iterating over all the product XML elements. This speeds up the SCAP update when there are CVEs with many CPE references, especially if they do not appear in the CPE dictionary. The most noticeable case for this is the initial update or rebuild of the SCAP database.
- Loading branch information
1 parent
4f29ca4
commit b1d74c2
Showing
1 changed file
with
101 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters