]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid extra queries when retrieving routers
authorEugene Nikanorov <enikanorov@mirantis.com>
Mon, 6 May 2013 11:28:09 +0000 (15:28 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Wed, 8 May 2013 11:25:22 +0000 (15:25 +0400)
commit9751562cd0966b5d911a6c147ae23b0577aa0fa3
treeef29a255a01417f114cf1f92d7d69112b2940ccc
parent659038890176d722021138f22c307eb111ad3d6c
Avoid extra queries when retrieving routers

fixes bug 1160333

Instead of making N additional sql requests,
use relationship and joined query.

Change-Id: I8f650691916a252bf2a525343bfa0521ff6fbe43
quantum/db/extraroute_db.py
quantum/db/l3_db.py
quantum/extensions/l3.py