I'm about to make a decision on whether to use claims or session for some items that would require frequent access in my application but I am concerned about performance.
That is why I want to find out whether the application will always query the database to get the claims of a given role or logged in user anytime such is required in the application or is there a way the ASP.NET-Core application stores claims in a way that it does not require to always query the database to retrieve claims for a currently logged in role or user.
I'm in a dilema to rather store the items in session for the sake of performance. If that is the case, is there a downside to using session instead of claims to store items that would be needed as long as the user is logged in to the application?
Guidance please