improve-db-performance
Improve db perfomance of quantum. There are several issues that this blueprint aims to fix.
In quantum/
fixed_ips = orm.relationshi
When get_ports() is called:
items = [self._
generates a:
SELECT ipallocations.
FROM ipallocations
WHERE '04f508b7-
for each port when we could have done this in one query via:
query = query.options(
if we weren't using lazy="dynamic" (though code needs to change in order to account for this)
Lastly, we need a better solution for how we have been extended fields for the return of results i.e:
for net in quantum_lswitches:
as this generates tons of selects as well.
This blueprint will probably be implemented in a few patch sets.
Blueprint information
- Status:
- Complete
- Approver:
- Aaron Rosen
- Priority:
- Medium
- Drafter:
- Aaron Rosen
- Direction:
- Approved
- Assignee:
- Aaron Rosen
- Definition:
- Approved
- Series goal:
- Accepted for havana
- Implementation:
- Implemented
- Milestone target:
- 2013.2
- Started by
- Aaron Rosen
- Completed by
- Aaron Rosen
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Make get_ports() get all the ports from the db in one query