View Issue Details

IDProjectCategoryView StatusLast Update
0000227DefKeyGeneralpublic2025-03-13 15:46
Reporterzeynel Assigned Tozeynel  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Summary0000227: Caching results of userManager.FindByIdAsync and userManager.GetUserAsync
Description

As what GitHub Copilot says, calling these methods hits database everytime....

And I probably call them multiple times during a request.

The caching is recommended to be at controller level but it won't benefit ViewComponents.

Maybe instead of caching, I just need to check the code, run SQL Profiler etc, to optimize code.

TagsNo tags attached.

Activities

zeynel

2025-03-13 15:46

administrator   ~0002723

Already implemented a caching mechanism for current user.

Issue History

Date Modified Username Field Change
2024-07-06 01:10 zeynel New Issue
2025-03-13 15:46 zeynel Assigned To => zeynel
2025-03-13 15:46 zeynel Status new => closed
2025-03-13 15:46 zeynel Resolution open => fixed
2025-03-13 15:46 zeynel Note Added: 0002723