Use the
_QRWENABLE/NO_QRWENABLE option to completely disable
the SPD Server query rewrite facility. Disabling the query rewrite
facility prevents the rewrite planner from intervening in the SQL
flow and from making any optimizing rewrites. This option is not normally
specified unless you want to test if an SQL statement would run faster
without rewrite optimization, or if you suspect that the resulting
row set that you get from a query rewrite evaluation is incorrect.
SPD Server provides
an alternate expression that does the same thing as the
_QRWENABLE/NO_QRWENABLE option. It is the _
QRWENABLE=1/_QRWENABLE=0 option. The query rewrite facility
is enabled in SPD Server by default.
Usage:
/* Disable query rewrite */
/* facility */
execute(reset no_qrwenable)
by sasspds ;
/* A second way to disable */
/* query rewrite facility */
execute(reset _qrwenable=0)
by sasspds ;
/* Enable query rewrite */
/* facility */
execute(reset _qrwenable)
by sasspds ;
/* A second way to enable */
/* query rewrite facility */
execute(reset _qrwenable=1)
by sasspds ;