Re:Migrating Facebook to MySQL 8.0
by setr on Saturday July 24, 2021 @01:52AM
(#27938801)
Easiest I can imagine is a user-facing id that gets incremented by trigger (e.g. select max(col)+1 — autoincrement/serial doesn’t guarantee contiguity, or even reasonable increments…).
And then any second trigger that relies on that value
And then any second trigger that relies on that value