Solved

view time out

Posted on 2012-03-14
1
223 Views
Last Modified: 2012-03-14
hi

I have a view that is timing out, i think it because of the fact it joins to 5 other views to get the results...is there a simple way i can speed it up?
0
Comment
Question by:ac_davis2002
1 Comment
 
LVL 25

Accepted Solution

by:
jogos earned 500 total points
ID: 37719742
<<.is there a simple way i can speed it up?>>
Tune each view
If possible even look if there are overlaps in the views so a rewrite of the functionality of 2 views in one select could be more efficient.
Why a view now? Could it be a stored procedure (with or without parameters)?
Look for missing indexes or columns that can be included in an index to become a covered index.

Start at looking at the estimated execution plan, see some links
http://www.codeproject.com/Articles/9990/SQL-Tuning-Tutorial-Understanding-a-Database-Execu
http://msdn.microsoft.com/en-us/library/ms188722.aspx
http://msdn.microsoft.com/en-us/library/cc645887.aspx
http://sqlserverpedia.com/wiki/Examining_Query_Execution_Plans
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question