Page 1 of 1

What is the best way in appery.io to assign a unique code to each new user?

Posted: Wed Dec 11, 2013 4:57 pm
by Marco Locatelli

I have a db table with a list of codes. When a user sign up I need to assign him a unique code from the list.

It has to work also when some users sign up at the same time.
Thanks


What is the best way in appery.io to assign a unique code to each new user?

Posted: Wed Dec 11, 2013 6:07 pm
by Maryna Brodina

Hello! Appery.io back-end doesn't support transactions, that's why there is no way to do it automatically. You would need to think of your app logic and do some coding to implement that algorithm.


What is the best way in appery.io to assign a unique code to each new user?

Posted: Thu Dec 12, 2013 2:03 pm
by Marco Locatelli

Hi Maryna, I posted the question to know what is the best/suggested way to implement it by using the actual appery.io features.

Maybe somebody in the community or the appery.io team have already implemented it (or a similar scenario) in a good way.

Any suggestion?