Should I use flat tables or a normalized database?

前端 未结 7 958
南方客
南方客 2021-02-19 03:39

I have a web application that I am currently working on that uses a MySQL database for the back-end, and I need to know what is better for my situation before I continue any fur

7条回答
  •  萌比男神i
    2021-02-19 04:26

    Rule of thumb. It's easier to go from normalized to denormalized than the other way around.

    Start with a reasonable level of database normalization (by reasonable I mean readable, maintainable, and efficient but not prematurely optimized), then if you hit performance issues as you grow, you have the option of looking into ways in which denormalization may increase performance.

提交回复
热议问题