29 Sep 2009
03 Jun 2011
Link to this post
I have my custom Membership and Role provider, now, mostly working. I had to use hacky methods to convert long's to Guid's, but that wasn't a show stopper.
My big concern at this point is peformance. At login, the GetAllUsers method is called at least (4) times. I don't even understand why it would be called at all during login.
After successfully logging in, the GetUsersInRole method is called. This again, is a HUGE performance hit when I have 20+ roles and 10,000+ users.
I see no purpose for these methods to be called, especially at the points where they are called. It causes a significant and noticeable degredation of performance / user experience. Is anyone at Telerik working to optimize the Membership/Role provider wrappers?
Last question - is there a way to have the login method execute other routines after validation? On our pervious Sitefinity 3.7 site, I would stuff extra data into the auth cookie and adjust things like the 'remember me' properties of the cookie. Is this possible with Sitefinity 4.x?