Generating 12-Character Random Identifiers from Java UUIDs

Standard Universally Unique Identifiers (UUIDs) produced by Java typically generate a 36-character string containing hexadecimal digits and hyphens. Often, shorter identifiers are required for specific application contexts. The following procedure outlines how to derive a 12-character string from a standard UUID object. Process Overview The tra ...

Posted on Sun, 10 May 2026 20:18:22 +0000 by mansuang

Using UUIDv7 as Database Primary Keys

A persistent misconception in software engineering is that universally unique identifiers (UUIDs) are inherently unsuitable for database primary keys. The rationale stems from the fact that standard random UUIDs cause index fragmentation and frequent B-tree page splits during inserts due to their lack of sequential ordering.UUID SpecificationsD ...

Posted on Sat, 09 May 2026 17:42:27 +0000 by akelavlk