]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Improve vxlan type driver initialization performance
authorEugene Nikanorov <enikanorov@mirantis.com>
Wed, 4 Jun 2014 10:40:13 +0000 (14:40 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Wed, 11 Jun 2014 08:10:35 +0000 (12:10 +0400)
commit6e2fce563ab250d4bfe000dd2a2dbc00f094141b
treeb1362a74ba10348054b1d50eba8fbbf83109cce1
parent442960d2b21c3ce5b5e94766ae910518c85dedda
Improve vxlan type driver initialization performance

Vxlan type driver may take long time to initialize
vxlan allocation table. Optimize db performance by issuing
raw sql inserts coalesced into bulk statements.
Also optimize deleting logic.

Proposed patch gives ~2x performance gain in comparison with
original code on Mysql and Postgesql backends

Change-Id: I801d967e8e3c0260593f289097d17270ef0b391e
Partial-Bug: #1324875
neutron/plugins/ml2/drivers/type_vxlan.py