uuidv7
uuidv7() embeds a timestamp, so keys created later sort later. uuidv4() is the old random one.
task
Insert 10 rows (n = 1 to 10) into temp table u and return whether ordering by id gives the same order as ordering by n.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
uuidv7() embeds a timestamp, so keys created later sort later. uuidv4() is the old random one.
Insert 10 rows (n = 1 to 10) into temp table u and return whether ordering by id gives the same order as ordering by n.