Skip to content

Comment on Things that don’t work well with MySQL’s FOREIGN KEY implementationparent

Comments

What's wrong with non-integer primary keys?

You can pack fewer of them into a page, which means more disk IO for things like index scans.

besides performance for using something that is not often tested by devs working in performance, bad support for locale collating and open you for bugs such as indexing on email but allowing application to store both upper and lower case etc.

I would expect they're referring to UUIDs or something

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.