benvegiard
Programmer
Can anyone point me to an article or have any backing information on what the fastest control structure is in SQL Server?
Here's my scenario, I am working on some performance tuning. A very common stored proc (fired about 50 - 100 times a minute) have a little over 200 if/thens to decide what data to bring back (it's a centralized GetPickList type of thing where they pass it what list they want...)
Since I can't break that out into seperate procs without much effort being put in by the developers, I wanted to see if taking the time to convert to If/Then/Else or making it a case would gain us anything.
Thanks,
Ben
Here's my scenario, I am working on some performance tuning. A very common stored proc (fired about 50 - 100 times a minute) have a little over 200 if/thens to decide what data to bring back (it's a centralized GetPickList type of thing where they pass it what list they want...)
Since I can't break that out into seperate procs without much effort being put in by the developers, I wanted to see if taking the time to convert to If/Then/Else or making it a case would gain us anything.
Thanks,
Ben