I am looking for a way to generate a unique ID for nosql database. Unlike relational database there is no idea of rows which means there is no last row to increment from.
The most common way to handle this is to use UUID's. But my problem is I need to add another ID (other than the UUID) which needs to be:
- Unique
- Unsigned Int32
Total data could reach around 50,000,000
. So how would you generate somewhat unique uint32 ID's?
The UInt32 value type represents unsigned integers with values ranging from 0 to 4,294,967,295.
- Only generated when a new user registers.
- 3 Id's are given to each new user.
- Currently using Couchbase Server.