[
https://issues.apache.org/jira/browse/LIBCLOUD-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112679#comment-13112679
]
Tomaz Muraus commented on LIBCLOUD-113:
---------------------------------------
This would actually make the average case worse :)
If we would implement it using "lazy property" it would result in an extra
request every time you access it on a different node object. If we did it in
list_nodes it would only result in a single extra request (retrieve all the
nodes, retrieve all the images, set image property on all the retrieved nodes).
We could solve this problem using per-object cache, but not sure if we want to
do that.
> Node object should have an 'image' attribute
> --------------------------------------------
>
> Key: LIBCLOUD-113
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-113
> Project: Libcloud
> Issue Type: Improvement
> Components: Compute
> Reporter: Tomaz Muraus
> Priority: Minor
> Labels: compute, image, node
>
> Node object should have an 'image' attribute which references the
> corresponding NodeImage object.
> - need to check if majority of the APIs return info which is needed to do
> this in list_nodes call.
> - need to evaluate the performance impact (in the best case without caching
> this means 1 extra request for each list_nodes call).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira