]> code.ossystems Code Review - openembedded-core.git/commit
cve-update-db-native: use executemany() to optimise CPE insertion
authorRoss Burton <ross.burton@intel.com>
Fri, 19 Jul 2019 20:33:17 +0000 (21:33 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 20 Jul 2019 11:04:24 +0000 (12:04 +0100)
commitb309840b6aa3423b909a43499356e929c8761318
tree48208e33c85ce0d2aa064bc11a82e274c38af349
parent8081d645353ed934a0158329f2f36ea49d663e19
cve-update-db-native: use executemany() to optimise CPE insertion

Instead of calling execute() repeatedly, rewrite the function to be a generator
and use executemany() for performance.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/meta/cve-update-db-native.bb