Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Phil Crowe 192 posts 256 karma points
    Aug 26, 2015 @ 13:49
    Phil Crowe
    0

    Filter GetMembersByMemberType by property

    Hello,

    I have this line in my application which has become very slow due to the volume of members i have in my app:

    var students = ApplicationContext.Current.Services.MemberService.GetMembersByMemberType("Pupil");

    all the students in the app have a number property 'teacherId'. Instead of pulling back all the members on the site first before checking which ones have the teacherId im looking for, is it possible to write the SQL to be able to get all the students for a specific teacher id with one call?

    Any help is appreciated!

  • Phil Crowe 192 posts 256 karma points
    Aug 27, 2015 @ 08:26
    Phil Crowe
    0

    Can anyone help with this?

Please Sign in or register to post replies

Write your reply to:

Draft