Inefficient use of db calls to get instance rules in virt/firewall.py
Bug #1528041 reported by
Hans Lindgren
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Hans Lindgren |
Bug Description
When getting instance rules in virt/firewall.py a for loop is used to query the db for rules belonging to each individual security group in a list of security groups that itself comes from a separate query. See:
This can be made much more efficient by querying all rules in a single db query joined by instance.
tags: | added: performance |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/259810
Review: https:/