]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
gw_port should be set as lazy='join'
authorarmando-migliaccio <armamig@gmail.com>
Fri, 18 Apr 2014 19:32:26 +0000 (12:32 -0700)
committerThomas Goirand <thomas@goirand.fr>
Mon, 9 Jun 2014 15:06:53 +0000 (23:06 +0800)
commit90fd9fbeb2b2bdfe456db3e86f8bbe40832c2487
tree3101b3918c303e5018d87044bfb181e88e8467b7
parent2dab2e65cd77cdc73e754541e9e0116ceef478c4
gw_port should be set as lazy='join'

This forces the object to be ready ahead of accessing time.
The change in loading behavior is also beneficial while listing
routers, as reduces the amount of queries being issued. Tests
show a performance gain of 15-30% for router-list times.

As Mr. Aaron Rosen is used to saying: Woot woot!!

Closes-bug: #1309144

Change-Id: Ibae261b91de26ca7c50e3f6c80e9be2a799785a3
(cherry picked from commit 966dbb5368d710e2652b18f5b9cb4295f58598da)
neutron/db/l3_db.py