since UUIDv4 is 100% pure randomness
when a new UUID record arrives,
it doesn't neatly append to the end
it gets forcefully squeezed randomly into the middle of the sorted list
this forces the database to constantly split and shift memory
this kills insertion performance,
to index primary key, database uses B-tree data structure
firstly PK column is sorted value wise,
then seperate memory is alloted for that sorted values
and the memory values point to the exact values in the column
in auto-increment, the values are already sorted incrementally
to know why UUID v4 breaks performance,
understand why databases index primary keys in the first place
imagine finding one specific name in a 10,000-page book, without an index
you have to read every single page
an index sorts the data so the database can find it instantly










