on 2011 May 23 3:49 AM
Is a reverse index scan distinquished from an index scan in a the plan of the optimizer.
Request clarification before answering.
Yes, if the optimizer chooses a reverse index plan then it will distinguish this in the plan.
Example:
create table foo( i int primary key); insert into foo( i ) select row_num from sa_rowgenerator( 1, 999999 ); commit; select explanation( 'select i from foo where i between 333333 and 333444 order by i asc' ); --> result is foo<foo(IO)> select explanation( 'select i from foo where i between 333333 and 333444 order by i desc' ); --> result is foo<foo(R,IO)>
Note that the 'R' in the second plan means "reverse".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
FWIW: I see that 'R' is missing from the [list of plan abbreviations][1] in the docs - I will ask to have it added.
[1] http://dcx.sybase.com/index.html#1201/en/dbusage/abbreviations-plan-queryopt.html
User | Count |
---|---|
61 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.