Quote:
Originally Posted by L_DBA_L
Why is it necessary to do SORT and RIDSCN after IXSCAN? Aren't the keys returned by IXSCAN already sorted?
|
Keys are, but RIDs are not, and you want them in sequence for efficient prefetch.
Quote:
Originally Posted by L_DBA_L
Does it make any difference if index TPCDL_SUMMARY2_IDX is a clustering index?
|
Yes, it might eliminate the sort (or change the access plan altogether).
Quote:
Originally Posted by L_DBA_L
Unrelated question: Is I create an index on a VARCHAR column, can DB2 use it?
|
Why not?