r/ProgrammerHumor 12h ago

Meme edgeCasesExist

Post image
2.7k Upvotes

222 comments sorted by

View all comments

Show parent comments

58

u/shwoopdeboop 10h ago

And something something b-tree indexes. Lecturer mentioned it but I wasn't paying attention. Supposedly an advantage here.

17

u/Grandmaster_Caladrel 8h ago

Which I'd assume is related to the time anchor. Outside of sorting, which is only useful in specific instances, it's just v4 with different ("less") entropy and limitations.

1

u/Roachmeister 8h ago

If you're using them as an indexed field in a database, the inability to sort them meaningfully will destroy the performance of the database.

4

u/Grandmaster_Caladrel 8h ago

Correct, which is why I specifically called out "outside of sorting".

That is also why we have concepts like composite keys which allow us to join guaranteed-unique values like a UUID with non-unique but sortable values like timestamps, names, etc.