|
|
|
|
|
by andreareina
1311 days ago
|
|
>>>> My only wish is that UUIDs were sortable and still contained their timestamp. When bug hunting, sometimes things become a little more obvious when there is an exact start and end to ids with issues. >>> Depends on the version used. Some of them do encode time. Encoding time isn't enough, it has to be big endian (unless you write a special sorting function for uuids). Timestamped uuids store the timestamp as [timestamp_low, timestamp_mid, version(!), timestamp_high][1] which doesn't sort right. [1] https://en.m.wikipedia.org/wiki/Universally_unique_identifie... |
|