summaryrefslogtreecommitdiffstats
path: root/nova/notifications.py
diff options
context:
space:
mode:
authorMotoKen <motokentsai@gmail.com>2012-11-01 15:07:52 +0800
committerMotoKen <motokentsai@gmail.com>2012-11-01 15:46:24 +0800
commit358ccf5f196b6b43f18778afae279633c051c6d9 (patch)
tree6c9efda01b58159e85c30a0a7813e58a8ee9c64f /nova/notifications.py
parent7db75002668dfc9d91914feaea67f49f947099b9 (diff)
downloadnova-358ccf5f196b6b43f18778afae279633c051c6d9.tar.gz
nova-358ccf5f196b6b43f18778afae279633c051c6d9.tar.xz
nova-358ccf5f196b6b43f18778afae279633c051c6d9.zip
Improve EC2 describe_security_groups performance
The current implementation of EC2 describe_security_groups makes one query per grantee group rule in _format_security_group. This will dramatically slow down response time if users make strong use of grantee group rules. This patch uses just one DB query to get security groups with joined grantee_group rules to improve the performance. Fixes bug 1073024. Change-Id: I34f3253bfef0eabfea39819de03a274dd6f6aaa8
Diffstat (limited to 'nova/notifications.py')
0 files changed, 0 insertions, 0 deletions