Optimize tenant count retrieval
Pushpalanka opened this issue · comments
Description:
As per the code to show the total number of tenants in the UI and we are retrieving all the tenants with their information[2], though pagination is added in the page.
We can optimize this code in memory aspects by just retrieving the tenant count.
[1] - https://wso2.org/jira/browse/CARBON-14690
[2] - https://github.com/wso2/carbon-multitenancy/blob/v4.6.0/components/tenant-mgt/org.wso2.carbon.tenant.mgt.ui/src/main/resources/web/tenant-mgt/view_tenants.jsp#L138-L143