mySQL - Should I denormalise?

后端 未结 6 1873
傲寒
傲寒 2021-01-14 07:56

Overview (Sorry its vague - I think if I went into more detail it would just over complicate things)

I have three tables, table one contain

6条回答
  •  梦谈多话
    2021-01-14 08:40

    My advice is to follow this general rule: Normalise by default, then denormalise if and when you identify a performance problem which it will solve.

    I find normalised data, and code dealing with it, easier and more logical to maintain. I don't think there is any problem using denormalisation to improve performance, but I would not speculatively apply any performance optimisation which results in a decrease in maintainability until you are sure they are necessary.

提交回复
热议问题