Databases

Denormalization

Storing redundant copies of data to avoid costly joins. It improves reads, but hurts write performance and duplicates data.

Example

Store the author's name inside each post: reading a post needs no join, but if the author changes their name, all 500 posts must be updated.

Test yourself: Denormalization

Measure and optimize

What do you pay for denormalizing?

Lessons that use it

More databases terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.