Jump to content

Generate a Unique ID


Manoj Chaurasia

Recommended Posts

  • 4 years later...

Hi,

 

There is a lot of solution (each one have its own advantages and drawbacks) :

- Using an oracle sequence,

- Creating the ID with a timestamp + some rand value (increase the size of the rand value if you want to decrease the chance to have the same ID generated),

- The same thing than above but with a critical section to avoid "concurrent" use and thus decreased again the probability of having the same ID,

- Using a field of your business data which is already unique,

- ...

 

regards,

mathieu

Link to comment
Share on other sites

  • 1 year later...
  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...