Why do multiple WHERE conditions slow query rather than speed it up?

前端 未结 8 965
轮回少年
轮回少年 2021-02-04 04:35

The problem is that the query in question runs very slow when compared to the query run with one or two, rather than all three of its conditions.

Now the query.

8条回答
  •  日久生厌
    2021-02-04 05:08

    The only way to know why is to check the execution plan. Try SET SHOWPLAN_TEXT ON.

提交回复
热议问题