4 ms·
I did a video covering choosing a primary key type for MySQL [1], including UUIDs. Long story short: you should probably use a bigint unless you have a pretty
by aarondf 3y ago
I did a video covering choosing a primary key type for MySQL [1], including UUIDs.
Long story short: you should probably use a bigint unless you have a pretty good reason not to. Good reasons exist! If you do use a UUID, make sure you use a version that is time-sorted.
1: https://planetscale.com/courses/mysql-for-developers/indexes/primary-key-data-types https://planetscale.com/courses/mysql-for-developers/indexes...