Product Documentation

FairCom RTG V3 Update Guide

Previous Topic

Next Topic

<scancache> Scanning Caching Strategy Option

The FairCom RTG <scancache> configuration option allows setting the cache strategy to be used for reading one file or a set of files. The <scancache> option is a boolean that is enabled with <scancache>yes</scancache>, or disabled with <scancache>no</scancache>.

If <scancache>no</scancache> is used, the data cache buffer pages are managed using c-tree's default reuse scheme, which reassigns a cache page anytime a read requires a page that is not already in cache. This strategy can allow a single user doing many reads from a single file to take over a large percentage of the total cache for that file.

If this option is enabled with <scancache>yes</scancache>, all the standard cache routines are used unless the read requires a cache page that is not already in cache. In that case, it limits each user to a maximum of 2 cache pages. The significance of this strategy is that a large set of data record read operations can be performed using only two cache pages with little or no decrease in performance compared to no restrictions on cache usage. Moreover, such restricted use may help other aspects of system performance since the bulk of data cache can be used for other files and/or other users. A large traversal of the data file by a single user will not replace other cache pages that may be useful to other users.

For more about this caching technique, see Scanner Cache in the FairCom DB Developer's Guide.

TOCIndex