When I am calling Membership.GetUser() once MiniProfiler reports a lot (28) SQL requests. Any idea what I am doing wrong or what I can do to prevent this?
Seems a bit of an overkill doing this on every request (and for every page).
PS. Same for Members.GetCurrentMemberProfileModel()
A lot SQL queries in Membership.GetUser
Hi!
When I am calling
Membership.GetUser()
once MiniProfiler reports a lot (28) SQL requests. Any idea what I am doing wrong or what I can do to prevent this?Seems a bit of an overkill doing this on every request (and for every page).
PS. Same for
Members.GetCurrentMemberProfileModel()
Hi Tobias,
Yes, Membership.GetUser() is very expensive method for performance.
MembershipHelper is much better in this sense.
http://our.umbraco.org/documentation/Reference/Querying/MemberShipHelper/
Thanks
is working on a reply...