What is the purpose of having LoweredUserName column in addition to UserName column in aspnet_Users table?
A case-sensitive database query is more performant than a case-insensitive one.
Since the username is considered a natural key, a lot of lookups will be based on the username instead of the GUID (think logging in, for instance).
The performance gain for small user tables will be marginal, but will be more prominent as your userbase grows.
I would assume that it is rather the details of implementation of the SqlServerMembershipProvider, than a certain practice in terms of ASP.NET security. Probably, it influences general performance if you do LOWER operation once when the user is created, and later on just compare it with the parameter value. In this case, you'll have to lower only the parameter value.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With