View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000227 | DefKey | General | public | 2024-07-06 01:10 | 2025-03-13 15:46 |
Reporter | zeynel | Assigned To | zeynel | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Summary | 0000227: 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. | ||||
Tags | No tags attached. | ||||