Questions tagged [guid-generation]

3 questions
28
votes
7 answers

URL-Compact representation of GUID/UUID?

I need to generate a GUID and save it via a string representation. The string representation should be as short as possible as it will be used as part of an already-long URL string. Right now, instead of using the normal abcd-efgh-...…
chakrit
  • 61,017
  • 25
  • 133
  • 162
0
votes
0 answers

Are snowflake ids generated on multiple machines sortable

I am reading https://en.wikipedia.org/wiki/Snowflake_ID There are 41 bits for time epoch in each generated id. but if these ids are generated on multiple machines, but the time on each machine are not aligned. how to make sure all ids are sortable…
BAE
  • 8,550
  • 22
  • 88
  • 171
0
votes
2 answers

generate mysql ids as a string instead of a integer

I am sure this is called something that I don't know the name of. I want to generate ids like: 59AA307E-94C8-47D1-AA50-AAA7500F5B54 instead of the standard auto incremented number. It doesn't have to be exactly like that, but would like a long…
Toby Joiner
  • 4,306
  • 7
  • 32
  • 47