Difference between revisions of "SET SMARTQUERY"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) (→Example) |
Yvonnemilne (Talk | contribs) |
||
Line 24: | Line 24: | ||
set smartquery to 2 | set smartquery to 2 | ||
</code> | </code> | ||
+ | |||
==Products== | ==Products== |
Latest revision as of 16:04, 13 January 2010
Purpose
Enable and configure SmartQuery caching
Syntax
SET SMARTQUERY ON | OFF | (<expL>)
SET SMARTQUERY TO <expN>
See Also
Description
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.
Example
set smartquery on set smartquery to 2
Products
Recital, Recital Server, Recital Web