I have import all users and memberships, Now I need to add these users to their right memberships. I have a membership that has over 10000 users, the import tool isn't running through that many users at a time. If i tried to separate them into many different files, i will need to clear all data every time i import otherwise there will be duplicated memberships.
I prefer to do some custom coding, I have also looked into M2 plugin file, seems like there's a class and a method to do that, membership/app/model/class-ms-model-relationship.php, create_ms_relationship at line 400
Would like further assistance regarding on how to move forward with custom coding.