Hacker News new | ask | show | jobs
by junek 562 days ago
Sometimes I feel bad when I generate a UUID without using it for anything. Like I've wasted it.
6 comments

You're not the only one who feels this way: https://wasteaguid.info/
This is just perfect.
There's enough of them that you're saving a scarcer resource by not recording it anywhere.
how bad do you feel about all the uuids you didnt generate so were never born?
At work our clickstream data carries an 'event_uuid' column which combines uuid, bigint, account numbers and about 10 other identifiers. It makes joining really convenient when you don't know what column to use.
I once used `SELECT TOP 1` ... `ORDER BY NEWID()` to pick a record from a table of millions.

Millions of UUIDs generated! All so one would randomly be picked as the lowest valued and the attached record returned. Such a waste!

Seriously, this just seems like a frivolous waste of a precious and rapidly dwindling resource…