Explain the difference between 2NF and 3NF. Why might a high-scale production system choose to denormalize certain tables?
Last updated
2NF removes partial dependencies: every non-key column must depend on the whole composite primary key, not just part of it.
3NF removes transitive dependencies: no non-key column may be determined by another non-key column (e.g.
zip_codedeterminingcity).High-scale systems denormalize to cut costly joins and speed up read-heavy queries. The cost is keeping duplicated data consistent on writes.
- https://www.boot.dev/blog/backend/database-normalization
- https://www.digitalocean.com/community/tutorials/database-normalization
- https://www.geeksforgeeks.org/dbms/difference-between-2nf-and-3nf-in-dbms/
- https://dev.to/alex_aslam/normalization-vs-denormalization-a-strategic-guide-not-a-dogma-a1d
- https://codilime.com/blog/normalization-vs-denormalization-in-databases/
- https://medium.com/system-design-interviews-simplified/system-design-mock-interview-normalization-and-denormalization-ba7f11b666f8