TLDR Tech / Practical
Replacing google/uuid with the Go uuid package in 1.27
The author examines Go 1.27's new standard library uuid package, comparing its features and performance to github.com/google/uuid. Testing against a SQLite database revealed that version 7 UUID primary keys offered significantly faster insert speeds compared to version 4 UUIDs. The article also details migration steps, database/sql integration behavior, and edge cases involving NULL values and text encoding.
Read the full story