I'm tying to list all the members by type and do a pagination, but as soon as I call method GetMembersByMemberType it just wont move. It takes around 1 to 2 minutes to list and I only have little over 4000 members.
Can anyone tell me what I'm doing wrong please.
var ms = ApplicationContext.Services.MemberService;
IEnumerable<IMember> list = null;
list = ms.GetMembersByMemberType("Candidato").Where(x => x.IsApproved == true).OrderByDescending(x => x.Id);
MemberService very slow
Hi,
I'm tying to list all the members by type and do a pagination, but as soon as I call method GetMembersByMemberType it just wont move. It takes around 1 to 2 minutes to list and I only have little over 4000 members. Can anyone tell me what I'm doing wrong please.
Our is there any alternative?
Thanks
Hi Jose,
Yes, MemberService is slow, why do you need so complicated request? Can you do some another logic ? Maybe more checks in the query.
Thanks, Alex
I've edited the post so it would be more simple.
I need to get all member that are active and are from the type "Candidatos", is there any other way to do this without the MemberService?
Jose, I'm afraid that you can do nothing. Maybe add some indexes to Umbraco database, but get all members by user group is heavy request.
Thanks
is working on a reply...