shwstppr edited a comment on pull request #5854: URL: https://github.com/apache/cloudstack/pull/5854#issuecomment-1012954827
@rohityadavcloud @weizhouapache in my testing I found one reason for login taking considerable time is the size of listApis response. Even if we remove `response` param it is still large. Therefore, I've refactored API to return just the names (as UI at first needs available APIs to show appropriate view) and in the UI make two calls first to return just the name of API and second to get the complete response. I've seen decent improvement in login time with this. I've tested different views and haven't seen any UI issue yet. However, I'm a bit concerned if it can break UI is some cases like user instantly trying some UI action that depends on AutoGen while second API call is still in progress. Also, I'm not sure about if caching based on roles in the backend can bring a lot of improvement. A complete listApis response just for a User role can be **1.3mb** or higher -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
