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. Typically, you do not specify this option unless you want
to test whether an SQL statement runs faster without rewrite optimization,
or if you suspect that the resulting rowset that you get from a query
rewrite evaluation is incorrect.
The _QRWENABLE=1 / _QRWENABLE=0
option does the same thing as the _QRWENABLE / NO_QRWENABLE 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 ;