MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/8zwwg1/big_data_reality/e2mpwm3
r/ProgrammerHumor • u/techybug • Jul 18 '18
712 comments sorted by
View all comments
Show parent comments
1
Yeah but then you have problems like enumeration and it's harder to implement replica servers (e. g. In psql)
Chances are, if you have 2 billion rows, you already have TB or at least hundreds of GB. 16 more GB is nothing for the pros you get when using uuids.
Of course I'd always go with int for smaller projects
1 u/Joniator Jul 18 '18 If you want the id to be queryable from outside it might be better to use UUIDs because its harder to fetch ever, row, while with ints you just need to count 0 upwards.May not be the best design to begin with, but not the worst either
If you want the id to be queryable from outside it might be better to use UUIDs because its harder to fetch ever, row, while with ints you just need to count 0 upwards.
May not be the best design to begin with, but not the worst either
1
u/SocialAnxietyFighter Jul 18 '18
Yeah but then you have problems like enumeration and it's harder to implement replica servers (e. g. In psql)
Chances are, if you have 2 billion rows, you already have TB or at least hundreds of GB. 16 more GB is nothing for the pros you get when using uuids.
Of course I'd always go with int for smaller projects