a802b382d3
Loading subnets as part of the networks list and networks as part of the subnets list appears to have a significant impact when the network has tags and the subnets have extra routes entries. This is even further compounded by the network having rbac entries (likely due to the subnet inheriting the RBAC entries of the network with the custom join condition in the model). This patch converts rbac_entries on both subnet and network to use a subquery and converts the network and subnets relationships on the subnet and network models (respectively) to use subqueries as well. On my dev environment after running the script in the report, a network list took 5 minutes. Converting just the rbac_entries or just the network/subnet relationship to subqueries reduced it to 3-5 seconds. Converting both (as this patch does), reduces it back down to a couple of hundred milliseconds (normal perf of my development env with the current network count). Subqueries will just cost us a constant number of queries and won't scale up with result count so this should not impact scalability in any way. None of these fields are queryable from the API, so we don't need to worry about breaking queries against the models. Partial-Bug: #1649317 Change-Id: Ic1947e3d78d58a79b21344b10cb7ab0e573e419f |
||
---|---|---|
api-ref | ||
bin | ||
devstack | ||
doc | ||
etc | ||
neutron | ||
rally-jobs | ||
releasenotes | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.pylintrc | ||
.testr.conf | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
README.rst | ||
TESTING.rst | ||
babel.cfg | ||
bindep.txt | ||
requirements.txt | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
Team and repository tags
Welcome!
To learn more about neutron:
- Documentation: http://docs.openstack.org
- Features: http://specs.openstack.org/openstack/neutron-specs
- Defects: http://launchpad.net/neutron
Get in touch via email. Use [Neutron] in your subject.
To learn how to contribute:
CONTRIBUTING.rst