SQL Joins vs Single Table : Performance Difference?

后端 未结 7 767
时光说笑
时光说笑 2021-02-05 03:10

I am trying to stick to the practice of keeping the database normalized, but that leads to the need to run multiple join queries. Is there a performance degradation if many quer

相关标签:
7条回答
  • 2021-02-05 04:02

    Keep the Database normalised UNTIL you have discovered a bottleneck. Then only after careful profiling should you denormalise.

    In most instances, having a good covering set of indexes and up to date statistics will solve most performance and blocking issues without any denormalisation.

    Using a single table could lead to worse performance if there are writes as well as reads against it.

    0 讨论(0)
提交回复
热议问题