logoalt Hacker News

christophiluslast Monday at 11:42 AM2 repliesview on HN

Not really, no. They’re very convenient for certain problems and work really well in general. I’ve never had a performance issue where the problem boiled down to my use of UUID.


Replies

danparsonsonlast Monday at 12:41 PM

You never having seen the problem doesn't mean it never happens; I have dealt with a serious performance problem in the past that was due to excessive page fragmentation due to a GUID PK.

To your original point, these are heuristics; there isn't always time to dig into every little architectural decision, so having a set of rules of thumb on hand helps to preempt problems at minimal cognitive cost. "Avoid using a GUID as a primary key if you can" is one of mine.

kunleylast Monday at 11:53 AM

What are these certain problems, if I may ask?

show 1 reply