mrunalinikankariya commented on issue #2282: CLOUDSTACK-10104:Optimize database transactions in ListDomain API to improve performance URL: https://github.com/apache/cloudstack/pull/2282#issuecomment-334114250 Test result Time taken before fix 2017-10-04 18:43:46,995 DEBUG [c.c.a.ApiServlet] (qtp474210166-23:ctx-ee054a9c) (logid:d4e25726) ===START=== 10.11.100.107 -- GET command=listDomains&response=json&listAll=true&details=min&_=1507104583475 2017-10-04 18:43:47,083 DEBUG [c.c.a.ApiServlet] (qtp474210166-23:ctx-ee054a9c ctx-bd38118f) (logid:d4e25726) ===END=== 10.11.100.107 -- GET command=listDomains&response=json&listAll=true&details=min&_=1507104583475 Time taken : 88ms Time taken after fix 2017-10-04 20:55:46,401 DEBUG [c.c.a.ApiServlet] (qtp474210166-23:ctx-4213fa41) (logid:55e7c104) ===START=== 10.11.100.107 -- GET command=listDomains&response=json&listAll=true&details=min&_=1507112502766 2017-10-04 20:55:46,450 DEBUG [c.c.a.ApiServlet] (qtp474210166-23:ctx-4213fa41 ctx-dd1b1f51) (logid:55e7c104) ===END=== 10.11.100.107 -- GET command=listDomains&response=json&listAll=true&details=min&_=1507112502766 Time taken : 49ms With only 20 domains, time taken to get the list of domains is similar. We can find the difference with bulk data. Test LGTM ---------------------------------------------------------------- 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: [email protected]
With regards, Apache Git Services
