If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > index reverse scan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-10, 04:47
Pawan Kumar Pawan Kumar is offline
Registered User
 
Join Date: Mar 2008
Posts: 120
index reverse scan

Hi ,
Can anyone tell me how index reverse scan actually work with example?
__________________
Regards
Pawan Kumar
Reply With Quote
  #2 (permalink)  
Old 12-09-10, 08:37
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
It, basically, means that DB2 knows you have column_x in this index sorted as ASCENDING, so when you ask for max(column_x) it starts at the end of the tree, instead of the beginning of the tree. It can, also, allow you to avoid a sort if you have ORDER BY column_x DESC, if that index is used by the access path.
Dave
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On