cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhinandan Prateek <>
Subject Re: [PROPOSAL] List VM API enhancement
Date Thu, 06 Feb 2014 08:35:46 GMT
+1, The listVM call is one of the most resource intensive call. Any step
to optimise it are welcome.

On 06/02/14 2:01 pm, "Koushik Das" <> wrote:

>Currently list VM can only be called using a single VM ID. So if there is
>a need to query a set of VMs using ID then either multiple list VM calls
>need to be made or all VMs needs to be fetched and then do a client side
>filtering. Both approaches are sub-optimal - the former results in
>multiple queries to database and the latter will be an overkill if you
>need a small subset from a very large number of VMs.
>The proposal is to have an additional parameter to specify a list of VM
>IDs for which the data needs to be fetched. Using this the required VMs
>can be queried in an efficient manner. With the new parameter the syntax
>would look like
>The new 'ids' parameter will be mutually exclusive with the existing 'id'
>Let me know if there are any concerns/comments.

View raw message