]> code.ossystems Code Review - openembedded-core.git/commit
cve-update-db-native: use executemany() to optimise CPE insertion
authorRoss Burton <ross.burton@intel.com>
Wed, 6 Nov 2019 15:37:39 +0000 (17:37 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Nov 2019 20:44:15 +0000 (20:44 +0000)
commitd248ec9764d0439eb30fdb3605e9d05ee4219348
treebf9e3a341139ea53ffcf84139a6044f9cfb74394
parent5eeafcb492daf63602f0e2ed4a12f755701597d7
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.

(From OE-Core rev: b309840b6aa3423b909a43499356e929c8761318)

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