Copied to clipboard

Flag this post as spam?

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


  • Vilius Janulis 38 posts 79 karma points
    Apr 19, 2013 @ 14:59
    Vilius Janulis
    0

    Umbraco performance - member importer

    Hi,

    So i need to import some members from csv to umbraco. And more or less everything seems to work, but ... when the number of members in the csv get higher then 200 or so, it starts to be really slow/Request timed out.

    I mean it is quite simple , read line, add line, and there is all it is :)

    MemberType memberType= MemberType.GetByAlias("Standard");
    
    @* MembershipUser member = Membership.CreateUser(username, password, email);
    tried to used this one since other is called obsolete, but could not managed to make it work in same way as this older one *@
    Member member = umbraco.cms.businesslogic.member.Member.MakeNew(name, username, email, memberType, new umbraco.BusinessLogic.User(0));
    
    member.Password = password;
    member.AddGroup("Standard");
    member.SetProperty("number",fields[0]);
    member.Save();

     

    So my questions are : if i change it to new way would it increase performance so much as it needed ? if so can anyone help with doing same thing but in new way ?

    Is there a way to insert them directly to database via sql , but then can someone provide me with list of tables and relationships between them ?

    c# is there any way that i not though about to increase performance here ? :)

     

    Thank you. Have a nice day.

     

Please Sign in or register to post replies

Write your reply to:

Draft