UUID type for a database Primary Key
vladmihalcea.com
UUID type for a database Primary Key
1–8 of 8 posts
Re: UUID type for a database Primary Key
#2Re: UUID type for a database Primary Key
#3Unfortunately, the post mostly covers the lack of monotonicity in UUID <= 5 and only acknowledges at its end and only briefly that both UUID and GUID actually have versions that solve for exactly that. Leaving us with the post’s other, unexplored, complaint that UUIDs and GUIDs are "huge" and "take up a lot of space". Any good writing out there on considerations vis-a-vis PK column size in current RDBMs or monotonic…
Since it’s less useful for Cassandra (as those conditions won’t be met in most cases), I hope other databases with more to gain have also thought to implement this when they offered UUID types.
Re: UUID type for a database Primary Key
#4Re: UUID type for a database Primary Key
#5Re: UUID type for a database Primary Key
#6I'll stick with unsigned integers on the server side and I use uuid's for when it's facing a client, example a link, /page/view/ just makes sense.
Re: UUID type for a database Primary Key
#7I'll stick with unsigned integers on the server side and I use uuid's for when it's facing a client, example a link, /page/view/ just makes sense.
Seems like you are choosing the worst of both cases then. If you are effectively using uuid as a slug there are better choices out there that take less space to encode store and index.
Re: UUID type for a database Primary Key
#8Earlier quoted context omitted.
Seems like you are choosing the worst of both cases then. If you are effectively using uuid as a slug there are better choices out there that take less space to encode store and index.
I need to keep it unique, don't uuid's stay unique? I'm all ears to changing it for a smaller size.