diff options
author | Boris Pavlovic <boris@pavlovic.me> | 2013-05-08 16:25:46 +0400 |
---|---|---|
committer | Boris Pavlovic <boris@pavlovic.me> | 2013-05-08 17:16:46 +0400 |
commit | ac9cc15164f0afcac4b3320bcd58d36c00f3232c (patch) | |
tree | 9d2ae38fc73fc2231270a601bc89ee18803b3708 /nova/utils.py | |
parent | 2e35d7177830e16abd3e919510437f48c6691d51 (diff) | |
download | nova-ac9cc15164f0afcac4b3320bcd58d36c00f3232c.tar.gz nova-ac9cc15164f0afcac4b3320bcd58d36c00f3232c.tar.xz nova-ac9cc15164f0afcac4b3320bcd58d36c00f3232c.zip |
Optimize db.instance_floating_address_get_all method
Optimize db.instance_floating_address_get_all
Was:
Get FixedIps with corresponding instance_uuid
For each FixedIp get associated FloatIp (N request)
Now:
Get only list of FixedIps ids
Get all corresponding FloatingIp with one query (select in)
Get only addresses from FloatingIps (because we are using only it)
Add temporary test for db.instance_floating_address_get_all to
ensure that it works as expected.
Change-Id: Id3c515de0ca35707bbfe46b991c2d7cf591e431b
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions