MySQL JOIN Abuse? How bad can it get?

后端 未结 5 1077
星月不相逢
星月不相逢 2021-01-31 12:36

I\'ve been reading a lot about Relational Databases using many JOIN statements on every SELECT. However, I\'ve been wondering if there\'s any performance problem on the long run

5条回答
  •  心在旅途
    2021-01-31 13:30

    Some bright person once said:

    Normalize until it hurts, denormalize until it works!

    It all depends on the type of joins, and the join conditions, but there are nothing wrong with them. Joins ON table1.PK = table2.FK are very efficient.

提交回复
热议问题