Efficient method to generate UUID String in Java (UUID.randomUUID().toString() without the dashes)

I would like an efficient utility to generate unique sequences of bytes. UUID is a good candidate but UUID.randomUUID().toString() generates stuff like 44e128a5-ac7a-4c9a-be4c-224b6bf81b20 which is good, but I would prefer dash-less string. I’m looking for an efficient way to generate a random strings, only from alphanumeric characters (no dashes or any other special symbols). 10 … Read more

Advantages and disadvantages of GUID / UUID database keys

I’ve worked on a number of database systems in the past where moving entries between databases would have been made a lot easier if all the database keys had been GUID / UUID values. I’ve considered going down this path a few times, but there’s always a bit of uncertainty, especially around performance and un-read-out-over-the-phone-able … Read more