Marco Locatelli
Posts: 0
Joined: Fri May 24, 2013 1:51 pm

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

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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.

Marco Locatelli
Posts: 0
Joined: Fri May 24, 2013 1:51 pm

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

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?

Return to “Issues”