Databases · Middle · Question 10 of 75

Why can random UUIDs (v4) as primary keys slow down inserts on large tables?

Explanation

Time-ordered IDs (UUID v7, ULID or bigint identity) append to the end of the index, keeping the hot part small and in memory.

Further reading

Problem with a question

Databases · Middle · question 10

Test yourself

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

Take this quiz