Used to configure the management of caches in the HFSQL Client/Server engine.
HSetCache(hPageSize, 2000)
Syntax
<Result> = HSetCache(<Parameter to modify> [, <Data file> [, <Item>]] , <Value>)
<Result>: Integer
Former value of modified parameter (value before modification).
<Parameter to modify>: Constant
Parameter of the cache to modify: | |
hPageSize | Size of a block of caches. This block of caches will be used when browsing a data file. A large block of caches improves the browse and increases the transfers via network and the memory consumption. This parameter corresponds to the number of records read during the browse. |
<Data file>: Optional character string
Name of the data file to which the modification must be applied.
If this parameter is not specified, the modification is applied to all the data files.
<Item>: Optional character string
Name of the item to which the modification must be applied.
If this parameter is not specified, the modification will be applied to all the items found in the specified data file.
<Value>: Integer
New value that must be given to the parameter.For the hPageSize constant, this value must be between 1 and 5000 (the default value on a PC is 1000 and on a mobile is 10).
Business / UI classification: Business Logic