|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Tuesday, June 11, 2013 5:16 AM
Points: 58,
Visits: 263
|
|
JJ B,
Many thanks for your post and kind comments.
It's certainly been a valuable process for me to discover the performance limitations of ROW_NUMBER(), and be able to demonstrate that they can be overcome with appropriate indexing strategies.
However, it's clear that any ROW_NUMBER() based solution across large amounts of data does have some gotchas. Should the "ideal" index(es) not be available, or can't be created due to environmental constraints, other solutions are faster.
As always, it's about understanding your data and the queries that are run across it.
Kind regards, Lawrence
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, June 21, 2011 10:20 AM
Points: 1,
Visits: 45
|
|
Mr. Lawrence Moore,
Then according to this algorithm, Is will be possible to predict how many pages will be in the Query?
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Tuesday, June 11, 2013 5:16 AM
Points: 58,
Visits: 263
|
|
Jesus,
I'm not completely sure what you are asking.
Could you elaborate please?
Many thanks, Lawrence
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, February 07, 2012 10:14 AM
Points: 27,
Visits: 30
|
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, November 01, 2010 4:19 AM
Points: 39,
Visits: 150
|
|
| some solutions become simple and convenient since RANK function(NOW_NUMBER,RANK and DENSE_RANK).
|
|
|
|