Stored Procedure Performance

  • I have one Stored procedure That takes around 2 hour to execute.

    it runs in 2 hours on server with 8 processors.

    and it runs in same time on server with 32 processors.

    is there any way we can make it utilize all the processors.

    or can we apply multi-threading so it can get executed faster.

  • hard to say.

    I can drive from here to Rome in my 2CV in 5 days.

    I can do the same with my Porshe in 5 days if its engine isn't allowed full throtle.

    Maybe it would be better to just post your issue according to the guidelines provided by Gail :

    How to Post Performance Problems (By Gail Shaw)[/url]

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution ๐Ÿ˜€

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • amardesai89 (6/27/2013)


    I have one Stored procedure That takes around 2 hour to execute.

    it runs in 2 hours on server with 8 processors.

    and it runs in same time on server with 32 processors.

    is there any way we can make it utilize all the processors.

    or can we apply multi-threading so it can get executed faster.

    My car's broken - can you please fix it?

    Without any idea of the tables you are working with and the content of the stored procedure, it's impossible to say for sure. Read the link provided by Johan. At the very least, you could post the whole stored procedure and the batch of execution plans it generates.

    โ€œ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

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply