[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-10104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16313409#comment-16313409
 ] 

ASF GitHub Bot commented on CLOUDSTACK-10104:
---------------------------------------------

DaanHoogland commented on a change in pull request #2282: 
CLOUDSTACK-10104:Optimize database transactions in ListDomain API to improve 
performance
URL: https://github.com/apache/cloudstack/pull/2282#discussion_r159820728
 
 

 ##########
 File path: api/src/com/cloud/user/ResourceLimitService.java
 ##########
 @@ -104,6 +104,14 @@
      */
     public long findCorrectResourceLimitForDomain(Domain domain, ResourceType 
type);
 
+    /**
+     * Finds the default resource limit for a specified type.
+     *
+     * @param resourceType
 
 Review comment:
   it is self explanatory. no +or- 1 but this tag is not useful

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Optimize database transactions in ListDomain API to improve performance
> -----------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-10104
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10104
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: API
>            Reporter: Pranali Mande
>
> While creating the response object for the 'listDomain' API, several database 
> calls are triggered to fetch details like parent domain, project limit, IP 
> limit, etc. These database calls are triggered for each record found for in 
> the main fetch query, which is causing the response to slow down. The 
> database transactions could be optimized to reduce the response time of the 
> Listdomain API



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to