Why are joins bad when considering scalability?

后端 未结 16 2983
猫巷女王i
猫巷女王i 2020-12-12 11:32

Why are joins bad or \'slow\'. I know i heard this more then once. I found this quote

The problem is joins are relatively slow, especially over very

16条回答
  •  情书的邮戳
    2020-12-12 12:15

    Joins can be slower than avoiding them through de-normalisation but if used correctly (joining on columns with appropriate indexes an so on) they are not inherently slow.

    De-normalisation is one of many optimisation techniques you can consider if your well designed database schema exhibits performance problems.

提交回复
热议问题