]> 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)
committerarmando-migliaccio <armamig@gmail.com>
Fri, 18 Apr 2014 19:34:13 +0000 (12:34 -0700)
commit966dbb5368d710e2652b18f5b9cb4295f58598da
treec684d4873ce12f8c7274a6313f30876d9f7ceb81
parentdadcbeefaaa7951f2d2afbf6fa17736c585e21a8
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
neutron/db/l3_db.py