Support to get resource by id to avoid finding in list loop
Bug #1709577 reported by
Rui Chen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Shade |
Fix Committed
|
Undecided
|
Rui Chen |
Bug Description
For finding specified resource, we list all the resources in get_xxx(name_or_id) method, then find the result in list result loop, that might have poor performance and slow response when there are many resources in a project. OpenStack API support to get resource by id directly, and part of them had been implemented in Shade, like: get_server_by_id(), get_user_by_id(), get_volume_
Aims to support more:
- flavor
- image
- volume
- network
- subnet
- port
- floatingip
- security group
- ...
Changed in shade: | |
assignee: | nobody → Rui Chen (kiwik-chenrui) |
To post a comment you must log in.
Add patch link: /review. openstack. org/#/c/ 492080/
https:/