Stored Procedure Performance

  • amardesai89

    SSC Rookie

    Points: 43

    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.

  • Johan Bijnens

    SSC Guru

    Points: 134265

    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


    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[/url] :alien: but most of the time this is me :hehe:

  • ChrisM@Work

    SSC Guru

    Points: 186054

    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.

    [font="Arial"]โ€œWrite the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.โ€ - Gail Shaw[/font]


    For fast, accurate and documented assistance in answering your questions, please read this article[/url].
    Understanding and using APPLY, (I)[/url] and (II)[/url] Paul White[/url]
    Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
    [url

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

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