Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

how can i improve the sp performance. Expand / Collapse
Author
Message
Posted Friday, March 15, 2013 12:52 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, March 15, 2013 3:08 AM
Points: 7, Visits: 16


Dear friends,


i build the stored procedure was much more logic, each and every column having calculation.That was handled by function. each an every function also having loops.i was doing index also.it ll take the retrieving time more.


kindly help me improve the performance.
by
karthick.
Post #1431374
Posted Friday, March 15, 2013 12:58 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, July 24, 2014 11:46 PM
Points: 42, Visits: 290
Hello mkarthikeyan,

It would be hard to suggest without having a look at the code. To make a start, check the execution plan of the stored procedure and see which part is taking the longest time and start working on that part. Check the following link for a general idea on improving performance of SPs.

http://blog.sqlauthority.com/2010/02/16/sql-server-stored-procedure-optimization-tips-best-practices/
Post #1431376
Posted Friday, March 15, 2013 2:16 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 6:52 AM
Points: 6,872, Visits: 14,185
mkarthikeyan.mohan (3/15/2013)


Dear friends,


i build the stored procedure was much more logic, each and every column having calculation.That was handled by function. each an every function also having loops.i was doing index also.it ll take the retrieving time more.


kindly help me improve the performance.
by
karthick.


Rewrite it without the loops and functions. If you post the code for the stored procedure and provide ddl and dml for the tables, then the folks here will be able to help you rewrite it.


“Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
Exploring Recursive CTEs by Example Dwain Camps
Post #1431398
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse