]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Use a joined relationship for AZ info on networks
authorKevin Benton <blak111@gmail.com>
Mon, 14 Dec 2015 01:56:57 +0000 (17:56 -0800)
committerKevin Benton <blak111@gmail.com>
Mon, 14 Dec 2015 22:45:30 +0000 (14:45 -0800)
commit57964df5c6e4d590516ae7eb1783f694fa24f501
treed4b0c50e6bc290ec942ba65a6654f44255e406fb
parentdbc541be5428e092315ed3b51fa2295a5ea49068
Use a joined relationship for AZ info on networks

The previous code was doing a DB lookup for each network's
availability zone which was significantly impacting the
performance of network listings.

This patch adjusts the network model to be automatically joined
to the DHCP agents table that the AZ code uses to populate the
AZs for the network.

Change-Id: I908ceb1a68e0eed7c304e3ff82279ad6fa406167
Closes-Bug: #1525740
neutron/db/agentschedulers_db.py
neutron/db/availability_zone/network.py
neutron/db/models_v2.py
neutron/extensions/network_availability_zone.py