• wolfkillj (3/21/2013)


    Could you post actual execution plans for both queries - with and without the ROW_NUMBER() function call?

    Wolf, I will do that with the other examples. I guess another piece of the puzzle is this, we resolved this by removing the ranking function and simply maintaining a column to support this concept. In doing so the cost of the query was lowered from just under 400 to less than .01 - quite a difference - and the I/O generated was greatly reduced. This particular view is called from a very active web interface by our users constantly throughout the day.

    But I will post more in the next day or two to provide a better example.