Hello can we connect over google meet ?
Hello good morning
this logging we need to do in only admin service right ?
Hello 1.Is the BulkPermissionStore deployed in this local environment? Can you check the logs for BulkPermissionStore: cache hit or BulkPermissionStore: cache miss messages? yes i have added on locally
2.Is this the first request after starting the service (cold cache), or did you refresh the page multiple times and it's still 1.45s every time?
No , i have refresh the page multiple times
Also, would it be possible for you to provide a simple reproduction project that demonstrates this issue? It doesn't need to include your full business logic — just the basic setup with the same number of permissions and the same service configuration. This would allow me to download it and debug locally to pinpoint exactly where the time is being spent.
in this what you wnat?
Hello Add the following middleware in your module's OnApplicationInitialization, before app.UseConfiguredEndpoints(): this i need to add in my every microservice ?
Hello **Why does opening a new tab always take time?
The first time any user/role is accessed, it's a cold cache—one DB query runs to load and cache all permissions. After that, it's a single Redis GET. This is why the first request per user is a bit slower, but subsequent ones are instant. **
Suppose in this I have an open website in one tab. After I open any page in another tab via a redirecting click from the first tab of the side menu bar, will it always take time?
Regarding localization resources, we have another API available. Still, why does it takes 1.5 sec?
Hello. I did, and here's the log. ----------------------------------Before Login------------------------------ [11:06:11 INF] Notification is sent on same window time.
[11:06:11 DBG] HealthReportCollector - health report execution history saved.
[11:06:11 DBG] HealthReport history already exists and is in the same state, updating the values.
[11:06:11 DBG] HealthReportCollector has completed.
[11:06:11 DBG] HealthCheck collector HostedService executed successfully.
[11:06:11 DBG] BulkPermissionStore: cache miss for U:0e3c4557-57fd-31b4-7781-3a1df656b05c, loading from DB.
[11:06:11 DBG] BulkPermissionStore: cached 0 granted permissions for U:0e3c4557-57fd-31b4-7781-3a1df656b05c.
[11:06:11 DBG] BulkPermissionStore: cache miss for R:admin, loading from DB.
[11:06:12 DBG] BulkPermissionStore: cached 5798 granted permissions for R:admin.
[11:06:12 DBG] BulkPermissionStore: cache miss for C:Angular, loading from DB.
[11:06:12 DBG] BulkPermissionStore: cached 0 granted permissions for C:Angular.
------------------------------------ after login------------------------------
[11:08:13 WRN] The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'.
[11:08:13 DBG] Executing AbpApplicationConfigurationAppService.GetAsync()...
[11:08:13 DBG] BulkPermissionStore: cache hit for U:0e3c4557-57fd-31b4-7781-3a1df656b05c.
[11:08:13 DBG] BulkPermissionStore: cache hit for R:admin.
[11:08:13 DBG] BulkPermissionStore: cache hit for C:Angular.
[11:08:13 DBG] Executed AbpApplicationConfigurationAppService.GetAsync().
[11:08:13 INF] Executing ObjectResult, writing value of type 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationConfigurationDto'.
[11:08:13 INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 776.5724ms
-----------------------------------When i open one route via side bar in another tab-------------------------------------- ionController (Volo.Abp.AspNetCore.Mvc).
[11:09:30 WRN] The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'.
[11:09:30 DBG] Executing AbpApplicationConfigurationAppService.GetAsync()...
[11:09:30 DBG] BulkPermissionStore: cache miss for U:0162719b-2c7b-adb3-a629-3a1dfef2a46e, loading from DB.
[11:09:30 DBG] BulkPermissionStore: cached 181 granted permissions for U:0162719b-2c7b-adb3-a629-3a1dfef2a46e.
[11:09:30 DBG] BulkPermissionStore: cache miss for R:admin, loading from DB.
[11:09:30 DBG] BulkPermissionStore: cached 4314 granted permissions for R:admin.
[11:09:30 DBG] BulkPermissionStore: cache hit for C:Angular.
[11:09:30 DBG] Executed AbpApplicationConfigurationAppService.GetAsync().
[11:09:30 INF] Executing ObjectResult, writing value of type 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationConfigurationDto'.
[11:09:30 INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 576.4374ms
[11:09:30 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController.GetAsync (Volo.Abp.AspNetCore.Mvc)'
[11:09:30 INF] Request finished HTTP/1.1 GET http://adminserver/api/abp/application-configuration?includeLocalizationResources=false - 200 null application/json; charset=utf-8 631.2903ms
[11:09:31 INF] Request starting HTTP/1.1 GET http://adminserver/api/abp/application-localization?cultureName=en&onlyDynamics=false - null null
I want to understand one thing: why, when I redirect any route in another tab, does it always take time? And I want to know one thing: how your cache system works, like user-wise or something else
And still this taking 1.5 or 2 sec. Why?
Hello TMSMS.AdministrationService/ └── Permissions/ ├── BulkPermissionStore.cs ├── PermissionGrantBulkCacheItem.cs └── PermissionGrantBulkCacheItemInvalidator.cs
is this fine ?