August 12, 2013 at 12:20 pm
I'm using a SQL view to retrieve data from 8 different tables without having to do 8 select statements.
This has sped my project up quite a bit over the 8 selects.
But I still have some users complaining that it is slow.
Is it possible to index a view to improve its performance?
August 12, 2013 at 12:35 pm
why not using Indexed Views functionality?
August 12, 2013 at 12:45 pm
This might help you.
http://technet.microsoft.com/en-us/library/dd171921%28v=sql.100%29.aspx
August 12, 2013 at 12:53 pm
Thank you!. I think this is going to work for me.
The guys that work for me don't seem to like views, but I find that they make writing the SQL much easier.
August 12, 2013 at 1:25 pm
Chris, can you post the CREATE VIEW statement? Better still, can you post an actual execution plan (as a .sqlplan attachment) of a select from the 'slow' view?
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
August 12, 2013 at 2:58 pm
x
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply