IDXWHERE= is used with
the SPD Engine's WHERE expression planning software called WHINIT.
WHINIT tests the performance of index use with WHERE processing in
various applications. Set the SAS system option MSGLEVEL=I so that
the WHERE processing information is output to the SAS log.
When you use the IDXWHERE=
data set option and the BYSORT=YES option, the following messages
are written to the SAS log:
-
If IDXWHERE=YES and there is an
index on the BY variable, the index is used to order the rows of the
table. The following message is written to the SAS log:
Note: BY ordering was produced by using an index for
table tablename.
-
If IDXWHERE=NO or IDXWHERE=YES
and there is no index on the BY variable, SPD Engine performs an automatic
sort to order the rows of the table. The following message is written
to the SAS log:
Note: BY ordering was produced by performing an
automatic sort on table tablename.
The SPD Engine supports
four WHERE expression evaluation strategies. For more information,
see
SPDEWHEVAL= System Option. Strategies
1, 3, and 4 use available indexes and execute the indexed part of
the WHERE expression. Evaluation strategy 2 executes the non-indexed
part of the WHERE expression.
The first example shows
that evaluation strategy 2 is used in the WHERE expression because
IDXWHERE=NO was specified. The second example shows that evaluation
strategy 1 was used because IDXWHERE=YES was specified.