3
kudos
spam Kudos Remove

Kevin Kline : Why Do I Keep Seeing This Mistake?

posted by sasa 1031 days, 3 hours, 27 minutes ago
Sunday, July 26, 2009 6:35:38 AM GMT

One of the fundamentals of loop optimization is that you should move stable operations outside of the loop.  What I want to know is - if this is such a fundamental rule, why do so many people break it?!?

If you are familiar with other programming languages, then you are probably aware of loop optimization techniques. You should try to put all operations outside of the loop if they don’t need to change within the loop. This reduces the amount of unnecessary repetitive work. SQL Server optimizer doesn’t...

category: Query | clicked: 2 | | source: sqlblog.com | show counter code
tags: Optimization, Performance, REPLICATE

1 comment posted.

To post your comment please login or signup