neutron/neutron/api
Oleg Bondarev 130655cdb9 DHCP notification optimization
DHCP notification is done after each create/update/delete for
network, subnet and port.
This notification currently has to retrieve network from DB almost
every time, which is a quite heavy DB request and hence affects
performance of port and subnet CRUD.

This patch suggests 2 optimizations:
- do not fetch network if not needed (only fetch when schedule needed)
- for port and subnet AFTER_CREATE event pass network dict from plugin

According to Rally tests these changes improve performance:
- port create ~20%
- port update ~20%
- subnet create ~15%
- port delete and subnet update/delete - not tested

Closes-Bug: #1923161
Change-Id: I0ab836ac09225f4f3ad435e9ceaf315018855d52
2021-04-09 13:33:43 +03:00
..
rpc DHCP notification optimization 2021-04-09 13:33:43 +03:00
v2 Log exception generated in Controller.prepare_request_body 2020-08-18 16:18:34 -03:00
views Add a new configuration variable for api links. 2017-04-18 15:16:41 +00:00
__init__.py Added API extensions to detect sorting/pagination features 2016-08-01 22:57:15 +02:00
api_common.py Remove "six" library 2020-07-28 16:55:52 +00:00
extensions.py Check project_id/tenant_id in API call 2020-11-04 11:29:35 +00:00