Takes only few seconds to create a view but it takes forever to read from view! Is it common problem or it's a problem on iur server, I did not use view before. Please respond, I need to figure it out! have no time!
Thank you!
Ah, I suspected the answer wasn't that easy. Can you provide the code for the view? How many tables are involved in the view? Are JOIN columns indexed?
A view is nothing more than a pre-compiled SELECT statement. I suggest taking the SELECT statement of the view and run it in Query Analyzer with Show Execution Plan turned on. When it finally finishes, review the execution plan. Look for table scans and clustered index scans. If you can create indexes to eliminate the scans, then you'll probably improve performance.
--Angel
-----------------------------------
Every time I lose my mind, I wonder
if it's really worth finding.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.