Hmmm...... Using an indexed view to speed up selects, huh?
I would never write a view that does a simple select on a single table. It doesn't really make sense. Instead of writing a view that does a simple select on a single table, just add an index to to base table.
Think about it this way. The only time this would help is when your query isn't already using an index on the base table. But putting an index on the view, it will speed up THAT view. By putting an index on the base table, it will speed up that query and possibly others.
The path to using views is a slippery slope. Sure, views are easy to create, easy to use, hide implementation details of often used queries, etc...
The problem with views is when you OVER-USE them. I've heard of (but not seen) situations where views use other views which use other views.... 30 or more views deep. YIKES! This caused performance problems. In this situation, I was told that the developer re-wrote the query to use only base tables and performance improved by more than a factor of 10.
Please don't misunderstand me and think that I dislike views. I do use them on occasion. I merely want to caution you about nesting views. A couple layers of nesting is fine, but don't go too deep.
Just to give you an idea, in my database...
200 tables
200 audit tables
2,400 stored procedures
57 views
-George
Microsoft SQL Server MVP
My Blogs
SQLCop
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom