-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localize Make the PermissionAppService.GetAsync method slow #6373
Comments
Thanks for the feedback, I will check. |
hi @Nokecy I didn't find any performance issues. We used caching. Can you share a project? |
I did some more tests, when too many localized resources do not exist, the speed is too slow。 |
In addition, replacing Permission Grant Repository with PermissionStore can improve 2-3s @maliming |
I'll test, but why is there a
The PermissionStore is using cache but PermissionGrantRepository is not. |
I will change my project and add missing items
Does it need to be changed here? I can PR |
I did the PR.#6480 |
Actually, PermissionManagementProvider is only used when you manage permission (change permission of a user/role on UI) and it may be a bit slow. It bypasses cache to be able to work with the actual data source. However, using cache for reads seems no problem. I will accept the PR. |
abp/modules/permission-management/src/Volo.Abp.PermissionManagement.Application/Volo/Abp/PermissionManagement/PermissionAppService.cs
Line 73 in 810949f
1500 permission items:
remove Localize before--10s+
remove Localize after 300ms+
The text was updated successfully, but these errors were encountered: