Guide

UUID versions, and what they do to a database index

A UUID is 128 bits with a bit of structure imposed on it. Which structure depends on the version, and the version you pick has consequences well past uniqueness — it decides whether your primary key index appends neatly or scatters writes across the whole table.