]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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>
Mon, 22 Jul 2019 16:31:03 +0000 (17:31 +0100)
commit8ec4cd3e2addcfa29cfe8b5a2777d9b7e305e43e
tree0090e30748d1f64ef5cdae04d915237f03d0563c
parentffcf23f5f27fd20eabd5a10f3861f7a18c34158c
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