Difference between revisions of "SET FCACHE"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
Line 1: Line 1:
==Class==
 
Performance and Optimization
 
  
  

Revision as of 15:03, 26 October 2009


Purpose

Enable or disable open file caching


Syntax

SET FCACHE ON | OFF | (<expL>)


See Also

CLEAR FCACHE, CLEAR PROGRAM, SET DCACHE, SET ICACHE, SET PCACHE


Description

If FCACHE is ON, any files that are opened are recorded in the ’open file cache ’. When the file is closed, it is logically closed but not physically closed in the operating system. Further requests to open the file are satisfied from the ’open file cache’, thereby speeding up program execution by removing an operating system action. The files are stored in the ’open file cache’ until the process file limit is exceeded.

If FCACHE is OFF, closing files physically closes them in the operating system. If FCACHE is ON, the CLEAR FCACHE command must be issued as well as a CLOSE command in order to physically close files in the operating system. The default setting for FCACHE is OFF.


Example

set fcache on


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer