Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

simple select all columns view performing slower then physical table

$
0
0

Using SQL 2008 R2 Enterprise Edition

I was testing a query that uses a view in addition to some other temp tables in inner joins. This query returns results in about 4 minutes. I changed the query to use the physical table instead of the view, and now it returns results in 2 minutes. The view is simply selecting all columns form the physical table (no joins in the view). Why is there a difference in performance using view vs physical table?

No other changes were made to the query and it has been tested with view vs physical table several times with the same timing results.

Thanks for any insights.


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>