View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000227 | DefKey | General | public | 2024-07-06 01:10 | 2024-07-06 01:10 |
Reporter | zeynel | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
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. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2024-07-06 01:10 | zeynel | New Issue |