Re:How long do GUIDs really need to be?
by JoeAltmaier on Friday October 31, 2014 @04:12PM
(#8540867)
UUIDs are optimal for every problem, in that they are unique and fairly fast to generate. There can be no better solution than that, except maybe to save a few bits. And we're only talking about 16 bytes here; not much to complain about. They're cheap at the price.
[ Parent
| on HN ]
Re:How long do GUIDs really need to be?
by JoeAltmaier on Friday October 31, 2014 @04:47PM
(#8541049)
Yeah its hard to get folks to come into the modern age of computering. FOr some reason there's tremendous resistance to abandoning the old crusty buggy solutions (indexes and handles that collide and need remapping) and using stuff that just works (identifying everything immutable with a uuid). Folks say 'its too many bits' and 'it takes too long'. Then they proceed to write megabytes worth of patchy code to try and save 64 bits worth of identifier.
Re:How long do GUIDs really need to be?
by JoeAltmaier on Friday October 31, 2014 @05:05PM
(#8541128)
As for database efficiency, that's a problem. But its a problem with the database - certainly no comfort for the user. But databases could do better, and I think they will one day come to handle uuids with less grief to the developer.
Re:How long do GUIDs really need to be?
by jacques_chester on Friday October 31, 2014 @06:29PM
(#8541415)
They already do. Postgres and SQL Server have UUID types.
Yeah, exactly. Building weakness into one's protocol because of an unhealthy attachment to saving a few bits and an even more unhealthy attachment to MySQL just seems foolish.
Re:How long do GUIDs really need to be?
by jayvanguard on Friday October 31, 2014 @11:27PM
(#8542096)
If you work with large amounts of data it hugely matters. 16 bytes times 1 billion records ends up being way more than 16GB of data, indexes, foreign keys, hot backup, etc. to manage and query.
Re:How long do GUIDs really need to be?
by JoeAltmaier on Saturday November 01, 2014 @08:51AM
(#8542865)
Even that is a small amount of memory. I have that much RAM on my computer. See, its an obsolete conversation, yet folks raised in an ecology of scarcity can't get past it.