SET SMARTQUERY

From Recital Documentation Wiki
Jump to: navigation, search

Purpose

Enable and configure SmartQuery caching


Syntax

SET SMARTQUERY ON | OFF | (<expL>)

SET SMARTQUERY TO <expN>


See Also

CLEAR SMARTQUERY, SELECT


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