OK, I'm confused about sql server indexed views (using 2008)
I have an indexed view called
AssignmentDetail
when I look at the execution plan for
select * from AssignmentDetail
it shows the execution plan of all the base indexes of all other tables that the indexed view should abstract.
I would think that the execution plan would be just a clustered index scan of PK_AssignmentDetail (the name of the clustered index for my view), but it is not.
There seems to be no performance gain with this indexed view, what should I do? Should I also create a non-clustered index with all columns so that it doesn't hit all other indexes?
Any insight would be appreciated.
Jose source share