I've got a stored procedure with loops and what not inside and recursive calling of other stored procedure and recursive calling of the stored procedure itself. This stored procedure has a lot of business logic inside it and I won't go into the detail of the actual code, I've already tweaked it as much as possible from a code point of view and also realize that having too much business logic in the actual stored isn't a best practice.
A part from this I was wondering if there is something that can be done to tell SQL to prioritize this single stored procedure or in some way have it use more resources to be faster or make it faster from a system point of view in any way?
I tried this question on stackoverflow but they correctly pointed out that the website is more for code related problems and this is more a server side question so I'm trying it here.
Thank you