Re:Problems with JPA/Hibernate
by orf on Wednesday April 14, 2021 @04:06PM
(#26812340)
Sure, but I think you would usually optimize for the inverse - actively finding a needle in a haystack rather than passively hoping a needle falls in your lap. I get 1k hits for "14632" in our Splunk for the last 60 minutes, all of it rubbish. Durations, image sizes, worker IDs, primary keys, port numbers.
Search for a UUID and the results are guaranteed to always be relevant. Can't do that with integers.
Search for a UUID and the results are guaranteed to always be relevant. Can't do that with integers.