Does SQL Server propagate WHERE conditions in complex views?

后端 未结 3 885
眼角桃花
眼角桃花 2021-01-22 15:37

I\'ve followed this question with a full example in case it isn\'t clear what I mean from the question.

I\'ve made a view which joins data from about five tables. The t

3条回答
  •  一个人的身影
    2021-01-22 15:57

    This is called predicate pushing.

    SQL Server is generally good at this though there are some constructs where there have been problems (e.g. see the final part of this article).

    Check the execution plan to see where the predicate is applied.

提交回复
热议问题