Getting permission list too slow
api:
PermissionAppService.GetAsync
problem code:
DisplayName = permission.DisplayName?.Localize(StringLocalizerFactory)
private PermissionGrantInfoDto CreatePermissionGrantInfoDto(PermissionDefinition permission)
{
return new PermissionGrantInfoDto {
Name = permission.Name,
DisplayName = permission.DisplayName?.Localize(StringLocalizerFactory),
ParentName = permission.Parent?.Name,
AllowedProviders = permission.Providers,
GrantedProviders = new List<ProviderInfoDto>()
};
}
The more permission lists there are, the slower the code execution.
We have approximately 40+permission groups and 200+permissions.
Make sure the Localization texts of permissions are exists
I don't think this is the solution to the problem
Make sure the Localization texts of permissions are exists
you can give it a try
Make sure the Localization texts of permissions are exists
Get it! Thank you very munch!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.