Enable and configure SmartQuery caching
SET SMARTQUERY ON | OFF | (<expL>)
SET SMARTQUERY TO [<expN>]
CLEAR SMARTQUERY, Performance optimization on network drives using SMARTQUERY caching, SELECT
When SET SMARTQUERY ON is in effect, then data selected with SQL SELECT commands is cached. When the same SELECT query is run again and no modifications have been made to the tables involved in the query, then the cached result set is returned without having to re-execute the query. This improves web application query performance.
The cached results are deleted automatically when their lifetime expires. This lifetime defaults to any changes being made within 1 second. The lifetime can be changed using the SET SMARTQUERY TO <expN> command, where <expN> is the lifetime in seconds.
set smartquery on set smartquery to 2