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.