Introducing the all-new TIBCO Community site!

For current users, please click "Sign In" to reset your password and access the enhanced features. If you're a first-time visitor, we extend a warm welcome—click "Sign Up" to become a part of the TIBCO Community!

If you're seeking alternative community sites, explore ibi, Jaspersoft, and Spotfire.

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 New...