Is too many Left Joins a code smell?

前端 未结 8 1807
南笙
南笙 2021-01-01 09:30

If you have for example > 5 left joins in a query is that a code smell that there is ...

  • something wrong with your design?
  • you\'re doing too much in o
8条回答
  •  忘掉有多难
    2021-01-01 09:43

    A lot of times you can alleviate the visual smell by creating helper views, I do not think there is a hard and fast rule of how many left joins are considered bad.

    Unlike procedural coding, breaking down SQL into little bits and pieces can result in inefficient queries.

提交回复
热议问题