索引视图与 Table

Indexed View vs. Table

我有一个很长的 运行 查询(相对于数据)正在访问索引视图。我以为索引视图是物理存储的数据?我将所有内容都转储到 table 和 运行 中,针对 table 执行相同的查询,发现它的执行速度几乎快了 3 倍。我的印象是,这显然是错误的,索引视图在性能方面与物理 table 一样。只是在寻找解释。

What edition of SQL Server are you running under? Downlevel editions require the use of the NOEXPAND query hint in order to benefit most from the indexed view. – Damien_The_Unbeliever

这就是答案,再次感谢