no-random-uuid-in-sql
Embedded SQL generates a random UUIDv4 instead of a time-ordered UUIDv7.
Why
Random UUIDv4 primary keys scatter inserts across B-tree pages; UUIDv7 keys preserve time ordering.
Fix
Use uuidv7() where the supported PostgreSQL version provides it.
Examples
SQL = "CREATE TABLE call (id UUID PRIMARY KEY DEFAULT gen_random_uuid())"SQL = "CREATE TABLE call (id UUID PRIMARY KEY DEFAULT uuidv7())"Formerly: no-gen-random-uuid-in-sql