Memflex
Memflex copied to clipboard
Performance Issues
- FlexRoleProvider::DeleteRole uses _roleStore.GetUsersInRole(roleName).Any(). Will be painful when the number of users in the system is large.
- FlexRoleProvider::IsUserInRoll uses GetUsersInRole(roleName).Any(...) - same potential problem.
Maybe the Future() feature of https://github.com/loresoft/EntityFramework.Extended will help on the EF side.
Thanks - I will take a look.
I don't think it makes sense to put the ICollection
I am kind of thinking that it would be better to just merge IFlexUserStore and IFlexRoleStore into a single IFlexMembershipStore and let the provider make the decisions on how it stores things.
Thoughts?
Eric: Yes, I think that idea has some merit. Will try to investigate this week.