Databases · Junior · Question 9 of 75

What is a common reason to use UUIDs instead of incrementing integers as IDs?

Explanation

UUIDs are 16 bytes vs 8 for bigint. Random UUIDs (v4) also spread inserts across the index; time-ordered UUIDs (v7) avoid that.

Further reading

Problem with a question

Databases · Junior · question 9

Test yourself

Take the Databases · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz